#include <iostream>
using
namespace
std ;
int
main(
)
{
cout
<<
"Hello,world!"<<
endl
;
return
0
;
}
==
#include <iostream>
using namespace std;
int main()
{
cout<<"Hello,world!"<<endl;
return 0;
}
这是一个简单的C++入门程序,用于打印经典的'Hello, world!'。它展示了基本的语法,包括`#include`指令,`using namespace std`声明以及`cout`和`endl`的使用。
576

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



