📄 pclint介绍的专栏.htm
字号:
<SCRIPT language=javascript src="pclint介绍的专栏.files/urltag.aspx"></SCRIPT>
<DIV style="CLEAR: both"></DIV></DIV>
<SCRIPT>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no,width=475,height=575,left=75,top=20,status=no,resizable=yes'));keyit.focus();}</SCRIPT>
<DIV class=post id=article>
<DIV class=postTitle><A
href="http://blog.csdn.net/lei001/archive/2006/05/06/709840.aspx"><IMG height=13
src="pclint介绍的专栏.files/zhuan.gif" width=15 border=0> pclint的使用</A></DIV>
<DIV class=postText>
<H1 style="MARGIN: 17pt 0cm 16.5pt 21.25pt"><SPAN lang=EN-US
style="mso-fareast-font-family: 'Times New Roman'"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman">1.<SPAN
style="FONT: 7pt 'Times New Roman'"><FONT size=6>
</FONT></SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">安装</SPAN></H1>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将压缩包比如</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">pclint8.zip</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">拷贝到</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">c:\</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,解压后重命名目录为</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">c:\pclint</FONT></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
size=3>版本</FONT></SPAN></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US><FONT face="Times New Roman">Q:</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如何查看版本?</SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US><FONT face="Times New Roman">A:</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">见</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">readme.txt</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">:</SPAN><SPAN
lang=EN-US><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US
style="COLOR: blue"><FONT size=3><FONT face="Times New Roman">PC-lint for C/C++
Version 8.00e<O:P></O:P></FONT></FONT></SPAN></P>
<H1 style="MARGIN: 17pt 0cm 16.5pt 21.25pt"><SPAN lang=EN-US
style="mso-fareast-font-family: 'Times New Roman'"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman">2.<SPAN
style="FONT: 7pt 'Times New Roman'"><FONT size=6>
</FONT></SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">开始使用</SPAN></H1>
<H2 style="MARGIN: 13pt 0cm 13pt 1cm"><SPAN lang=EN-US
style="mso-fareast-font-family: Arial; mso-bidi-font-family: Arial"><SPAN
style="mso-list: Ignore">2.1.<SPAN style="FONT: 7pt 'Times New Roman'">
</SPAN></SPAN></SPAN><SPAN
style="FONT-FAMILY: 黑体; mso-ascii-font-family: Arial">不用任何配置,直接使用</SPAN></H2>
<H3 style="MARGIN: 13pt 0cm 13pt 35.45pt"><SPAN lang=EN-US
style="mso-fareast-font-family: 'Times New Roman'"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman"><FONT
size=5>2.1.1.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">
</SPAN></FONT></SPAN></SPAN><FONT size=5><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">准备待被检查的文件</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">:</FONT></SPAN></FONT></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">先在</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">E:\</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">建一个文件:</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">main.cpp</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,内容为:</SPAN></FONT></P>
<TABLE class=MsoTableGrid
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt"
vAlign=top width=568>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">void
main()</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"><FONT face="Times New Roman">{<SPAN
style="mso-spacerun: yes"> </SPAN></FONT></FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">}</FONT></SPAN></P></TD></TR></TBODY></TABLE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
face="Times New Roman" size=3></FONT></O:P></SPAN></P>
<H3 style="MARGIN: 13pt 0cm 13pt 35.45pt"><SPAN lang=EN-US
style="mso-fareast-font-family: 'Times New Roman'"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman"><FONT
size=5>2.1.2.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">
</SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
size=5>最简单的用法</FONT></SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">在命令行下输入:</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">D:\><SPAN
style="COLOR: blue">C:\PCLint\Lint-nt
E:\main.cpp</SPAN></FONT></SPAN></FONT></P>
<TABLE class=MsoTableGrid
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt"
vAlign=top width=568>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">C:\PCLint>C:\PCLint\Lint-nt
E:\main.cpp</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">PC-lint for C/C++
(NT) Ver. 8.00q, Copyright Gimpel Software 1985-2004</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman"></FONT></O:P></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">--- Module:<SPAN
style="mso-spacerun: yes">
</SPAN>E:\main.cpp</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">_</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">}</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman"></FONT></O:P></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">E:\main.cpp<SPAN
style="mso-spacerun: yes"> </SPAN>3<SPAN
style="mso-spacerun: yes"> </SPAN>Info 783: Line does not end with
new-line</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman"></FONT></O:P></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">C:\PCLint></FONT></SPAN></P></TD></TR></TBODY></TABLE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
lang=EN-US><FONT face="Times New Roman">PCLINT</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">已经工作了,是不是简单的难以让人相信。</SPAN></FONT></P>
<H3 style="MARGIN: 13pt 0cm 13pt 35.45pt"><SPAN lang=EN-US
style="mso-fareast-font-family: 'Times New Roman'"><SPAN
style="mso-list: Ignore"><FONT face="Times New Roman"><FONT
size=5>2.1.3.</FONT><SPAN style="FONT: 7pt 'Times New Roman'">
</SPAN></FONT></SPAN></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><FONT
size=5>最简单的标准用法</FONT></SPAN></H3>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">修改被检查的文件</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">E:\main.cpp</FONT></SPAN><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">,内容修改为:</SPAN></FONT></P>
<TABLE class=MsoTableGrid
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext"
cellSpacing=0 cellPadding=0 border=1>
<TBODY>
<TR style="mso-yfti-irow: 0; mso-yfti-lastrow: yes">
<TD
style="BORDER-RIGHT: windowtext 1pt solid; PADDING-RIGHT: 5.4pt; BORDER-TOP: windowtext 1pt solid; PADDING-LEFT: 5.4pt; PADDING-BOTTOM: 0cm; BORDER-LEFT: windowtext 1pt solid; WIDTH: 426.1pt; PADDING-TOP: 0cm; BORDER-BOTTOM: windowtext 1pt solid; BACKGROUND-COLOR: transparent; mso-border-alt: solid windowtext .5pt"
vAlign=top width=568>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">#include
<stdio.h></FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><O:P><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman"></FONT></O:P></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6" face="Times New Roman">void
main()</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">{</FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"><FONT face="Times New Roman"><SPAN
style="mso-spacerun: yes"> </SPAN>printf("hello
pclint\n");<SPAN style="mso-spacerun: yes">
</SPAN></FONT></FONT></SPAN></P>
<P class=a0 style="MARGIN: 0cm 0cm 0pt"><SPAN lang=EN-US><FONT
style="BACKGROUND-COLOR: #e6e6e6"
face="Times New Roman">}</FONT></SPAN></P></TD></TR></TBODY></TABLE>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><FONT size=3><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">再次在命令行下输入:</SPAN><SPAN
lang=EN-US><FONT face="Times New Roman">D:\><SPAN
style="COLOR: blue">C:\PCLint\Lint-nt
E:\main.cpp</SPAN></FONT></SPAN></FONT></P>
<TABLE class=MsoTableGrid
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none; BORDER-BOTTOM: medium none; BORDER-COLLAPSE: collapse; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-border-alt: solid windowtext .5pt; mso-yfti-tbllook: 480; mso-border-insideh: .5pt solid windowtext; mso-border-insidev: .5pt solid windowtext"
cellSpacing=0 cellPadding=0 border=1>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -