
多行的注释为纳腔:/* …………*/
或者选中那些要注释的行点工具栏的注释按钮。
例如:
//开发人员:某某
或者
/* 开发人员:某某
开发时悔茄行间:XX年XX月XX日*/
,轮誉自动注释,,你在方法名上一行,或者 类别名拿桐裤称上一行,连着输入三个斜线,/// 就会自动变成这个。
工具”——“选项”——文本编辑器——C#——高级--》右侧有 “为 //消简/生成xml文档注释” 打上勾就行了。
字符串需要转义,不光是正则里的转,作为c++的字符串还要再转
regex rx2("/\\*(.|\r\n|\n)*?\\*/") //我这\r\n没找到换行,反倒单独的\n能匹配---------->衡衡
/* RC_INVOKED */
/* _QUEUE_ */
/*
* This file is derived from software bearing the following
* restrictions:
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, 歼橘copy, modify, distribute and sell this
* software and its documentation for any purpose is hereby
* granted without fee, provided that the above copyright notice
* appear in all copies 咐改做and that both that copyright notice and
* this permission notice appear in supporting documentation.
* Hewlett-Packard Company makes no representations about the
* suitability of this software for any purpose. It is provided
* "as is" without express or implied warranty.
*/
/*
* Copyright (c) 1992-2009 by P.J. Plauger. ALL RIGHTS RESERVED.
* Consult your license regarding permissions and restrictions.
V5.20:0009 */
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)