c++学习1 -- first测试输出
#include <iostream> using namespace std; int main() { cout << "hello world << endl"; //输出文字 system("pause");//方便观察结果 return 0; }
// 符号位注释
/* */ 多行注释 成对出现,如果/* */ 之间还需要多行注释的时候容易出错
#if #endif 利用c++代码的特性 用预处理方式注释
#include <iostream> using namespace std; int main() { cout << "hello world << endl"; //输出文字 #if 0 cout << "hello world << endl"; //输出文字 cout << "hello world << endl"; //输出文字 cout << "hello world << endl"; //输出文字 cout << "hello world << endl"; //输出文字 #endif system("pause");//方便观察结果 return 0; }
posted on 2018-04-26 15:47 theslowman 阅读(198) 评论(0) 收藏 举报
浙公网安备 33010602011771号