C++学习(一)
第一个程序-helloworld
这里使用Visual Studio作为程序的一个IDE。
如何创建项目及源文件这里不再赘述
#include <iostream>
using namespace std;
int main()
{
cout << "hello,world" << endl;
system("pause");
return 0;
}
注释
注释分为单行注释和多行注释
单行注释:// 描述语句
多行注释:/* 描述语句 */
#include <iostream>
using namespace std;
/*输出hello,world
*/
int main()
{
//输出hello,world
cout <<