大家好
我发现了XTend(http://xtend-lang.org),听起来真棒!但是,我看不到这种语言的任何独立命令行编译器.它似乎只能在日食下运行.我做了一些研究,发现有些人说,它有一个命令行编译器,但我找不到下载链接.
编译器是存在的,独立的,还是需要eclipse才能使用它?
问候
我需要从我的c ++代码中执行perl脚本.这是通过system()完成的.
现在我需要从我的代码中传递第二个参数:
int main(int argc, char * argv[])
Run Code Online (Sandbox Code Playgroud)
进入我的系统()像这样:
char *toCall="perl test.pl "+argv[1];
system(toCall);
Run Code Online (Sandbox Code Playgroud)
现在它带来了错误:"类型'const char [14]'和'char**'的无效操作数到二进制'运算符+'"
我究竟做错了什么?