(C++Primer)[C++]多行注释标记原则

来源:互联网 发布:淘宝从哪里看消费总额 编辑:程序博客网 时间:2024/06/05 19:13
//多行注释嵌套原则,scanner将碰到第一个/*之后的字符//全部标记为注释,直到碰到第一个*/后结束标记,已经在注释中的/*或*/已经//失去了标记注释的作用示例:
/*comment/*c/**/*/#include <iostream>/** comment pairs /* */cannot nest.* "cannot nest" is considered source code,* as is the rest of the program*/int main(){return 0;}

0 0
原创粉丝点击