且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

linux 下Eclipse for C/C++的不常见设置

更新时间:2022-01-31 04:06:50

设置1:build project的时候,让编译器支持  三字母词。

项目文件右击--> Properties-->C/C++ Build--> Settings 如图设置:

linux 下Eclipse for C/C++的不常见设置

再 Command line pattern 如图的位置加上 -ansi 或者 -trigraphs 即可。

现在可以尝试下 加 和 不加 这个参数下面代码的执行效果: printf("delete files? (are you really sure about this ??) ");

ok,this work has been completed! good luck!