标签:
#include "stdafx.h" //头文件引用
int _tmain(int argc, _TCHAR* argv[]) //主函数
{
printf("神奇的C++之旅"); //执行输出
return 0; //返回值
}
// HelloWorld.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[]) //主函数
{
printf("HelloWorld"); //一个完整的语句需要后面加分号
return 0;
}
//写完使用F7编译程序或者使用Ctrl+F5快捷键, F5的那个会跳出CMD
//单行注释
/* 开始 多行注释
.
.
结束 */
标签:
原文地址:http://www.cnblogs.com/sunweijie/p/4551265.html