step1:写好程序
#include
using namespace std;
int main()
{
cout<<"I love you!"<<endl;
int a=1;
int b=2;
int c;
c=a+b;
cout<<"c="<<c<<endl;
return 0;
}
step2:Ctrl+shift+b,选编译器g++
step3:关掉该终端窗口在普通的终端窗口运行刚刚生成的可执行文件
成功!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)