C++学习笔记:Hello
#include <iostream>
#include <cstdlib>
/**
* 第一个c++例子
*/
using namespace std;
int main() {
cout<<"hello world"<<endl;
system("pause"); // 让dos窗口不自动关闭 需要include cstdlib
return 0;
}
C++学习笔记:Hello
#include <iostream>
#include <cstdlib>
/**
* 第一个c++例子
*/
using namespace std;
int main() {
cout<<"hello world"<<endl;
system("pause"); // 让dos窗口不自动关闭 需要include cstdlib
return 0;
}

被折叠的 条评论
为什么被折叠?