基于CPQ及glot.io的在线代码运行程序
The run code online progrom based on CQP and glot.io
1.下载CQP程序(https://cqp.cc)
2.编译本代码或直接下载本代码中的cn.ylz1.runcodeonline.cpk放在[CQP目录\app\]
3.运行CQP程序,并启用插件
4.在群内回复code [programming language] [your code],如
code cpp
#include <stdio.h>
int main(){printf( "Hello,world");return 0;}
若程序中需要输入,请在运行代码前回复input[your input]
如input123
5.本程序目前支持以下编程语言的代码
{"assembly","main.asm"},
{"ats","main.dats"},
{"bash","main.sh"},
{"c","main.c"},
{"clojure","main.clj"},
{"cobol","main.cob"},
{"coffeescript","main.coffee"},
{"cpp","main.cpp"},
{"crystal","main.cr"},
{"csharp","main.cs"},
{"d","main.d"},
{"elixir","main.ex"},
{"elm","Main.elm"},
{"erlang","main.erl"},
{"fsharp","main.fs"},
{"go","main.go"},
{"groovy","main.groovy"},
{"haskell","main.hs"},
{"idris","main.idr"},
{"java","Main.java"},
{"javascript","main.js"},
{"julia","main.jl"},
{"kotlin","main.kt"},
{"lua","main.lua"},
{"mercury","main.m"},
{"nim","main.nim"},
{"ocaml","main.ml"},
{"perl","main.pl"},
{"perl6","main.pl6"},
{"php","main.php"},
{"plaintext","main.txt"},
{"python","main.py"},
{"ruby","main.rb"},
{"rust","main.rs"},
{"scala","main.scala"},
{"swift","main.swift"},
{"typescript","main.ts"}
该程序部分源代码及思路来源于@top.wellsun.runall(https://cqp.cc/t/44691)
采用MIT LISENSE开源,我基于其代码进行二次开发,增加了input功能
Part of the program source code and ideas from @top.wellsun.runall, use MIT LISENSE to open source,I am based on the second development of his code, adding 'input' function
二次开发请保留此声明并且保留作者版权
Please keep this statement and the author's copyright if you want secondary development