C++版Hello World
代码
#include <iostream> using namespace std; int main() { cout << "hello world!" << endl; //endl 是换行,与使用' '作用一样
return 0; }
开头那两句代码 暂时先记住吧
#include <iostream>
using namespace std;
代码
#include <iostream> using namespace std; int main() { cout << "hello world!" << endl; //endl 是换行,与使用' '作用一样
return 0; }
开头那两句代码 暂时先记住吧
#include <iostream>
using namespace std;