使用Secure CRT 输出一个hello world!

来源:互联网 发布:js .tostring 的用法 编辑:程序博客网 时间:2024/05/21 14:03

进入Secure CRT 界面后 vi hello.cpp

在hello.cpp中输入

#include <iostream.h>
using namespace std;
int main()
{
cout<<"hello world!"<<endl;

return 0;
}

保存后 回到以前的界面

然后输入  make  hello 进行编译

编译后  输入 ./hello

便可输出hello world!


原创粉丝点击