摘要: from http://www.learncpp.com/cpp-tutorial/12-comments/注释的类型注释是指一行或多行插入到源代码中用来解释说明代码做什么的文字。在C++中有两种注释类型。//符号在单行注释的前面,它告诉编译器忽略后面的内容。例如: 1: cout << "Hello world!" << endl; // Everything from here to the right is ignored.一般,单行的注释是用来快速的注释单行的代码。 1: cout << "Hello world!&qu 阅读全文
posted @ 2012-04-13 09:29 grassofsky 阅读(305) 评论(0) 推荐(0) 编辑