青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

S.l.e!ep.¢%

像打了激速一樣,以四倍的速度運轉,開心的工作
簡單、開放、平等的公司文化;尊重個性、自由與個人價值;
posts - 1098, comments - 335, trackbacks - 0, articles - 1
  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

VC,添加注釋的宏

Posted on 2009-11-20 22:40 S.l.e!ep.¢% 閱讀(929) 評論(0)  編輯 收藏 引用 所屬分類: VC
Sub?FILECOMMENT()
' DESCRIPTION:?COMMENT?For?file?version
ActiveDocument.Selection? = ? " /** "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? "  *?Name:? "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " *?Copyright:? "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " *?Author:? "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " *?Date:? "
ActiveDocument.Selection?
= ?DATE? + ?TIME
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " *?Description:? "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " *?Modification:? "
ActiveDocument.Selection.NewLine
ActiveDocument.Selection?
= ? " **/ "
End?Sub
Sub?AddFunctionDescription?(?)
' DESCRIPTION:?Creates?a?comment?block?for?the?currently?selected?C/C++?function?prototype

????
' Throughout?this?file,?ActiveDocument.Selection?is?used?in?place?
???? ' of?ActiveDocument.Selection.Text.??The?two?are?equivalent,?and?can?
???? ' be?used?interchangeably.?The?reason?for?the?equivalence?is?that
???? ' Text?is?regarded?as?the?default?property?to?use.?All?uses?of
???? ' ActiveDocument.Selection?without?any?other?property?default?to?the?Text
???? ' property.
???? if ?ActiveDocument.Language? = ?dsCPP?Then
????????Header?
= ?StripTabs(Trim(ActiveDocument.Selection))

????????
' Get?the?function?return?type.
???????? if ?Header? <> ? "" ?then
????????????Reti?
= ?InStr(Header,? " ? " )
????????????Loc?
= ?InStr(Header,? " ( " )
????????????
if ?Reti? < ?Loc?Then
??????????????RetTp?
= ?Left(Header,?Reti)
??????????????Header?
= ?Right(Header,?Len(Header)? - ?Reti)
????????????End?If

????????????
' Get?the?function?name.
????????????Loc? = ?InStr(Header,? " ( " )? - ? 1
????????????Loc2?
= ?InStr(Header,? " ) " )
????????????
if ?Loc? > ? 0 ?And?Loc2? > ? 0 ?then? ' make?sure?there?is?a? ' ( ' ?and?a? ' ) '
????????????????fcName? = ?Left(Header,?Loc)
????????????????Header?
= ?Right(Header,?Len(Header)? - ?Len(fcName))

????????????????
' Do?we?have?storage?type?on?the?return?type?
????????????????Trim?(fcName)
????????????????If?InStr(fcName,
" ? " )? <> ? 0 ?Then
????????????????????retTp?
= ?retTp? + ?Left(fcName,InStr?(fcName, " ? " ))
????????????????????fcName?
= ?Right(fcName,?Len(fcName)? - ?InStr(fcName, " ? " ))
????????????????End?If

????????????????
' Get?the?function?parameters.
????????????????iPrm? = ? 0
????????????????iPrmA?
= ? 0
????????????????prms?
= ?Header?

????????????????
' Count?the?number?of?parameters.?
????????????????Do?While?InStr(prms,? " , " )? <> ? 0
????????????????????iPrm?
= ?iPrm? + ? 1
????????????????????prms?
= ?Right(prms,?Len(prms)? - ?InStr(prms,? " , " ))?
????????????????Loop?
????????????????
????????????????
' Store?the?parameter?list?in?the?array.
????????????????If?iPrm? > ? 0 ?Then?? ' ?If?multiple?params.
????????????????????iPrm? = ?iPrm? + ? 1
????????????????????iPrmA?
= ?iPrm
????????????????????Redim?ParamArr(iPrm)
????????????????????Do?While?InStr(header,?
" , " )? <> ? 0
????????????????????????ParamArr(iPrm)?
= ?Left(Header,?InStr?(Header,? " , " )? - ? 1 )
????????????????????????
' Remove?brace?from?first?parameter.
????????????????????????If?InStr(ParamArr(iPrm),? " ?( " )? <> ? 0 ?Then
????????????????????????????ParamArr(iPrm)?
= ?Right(ParamArr(iPrm),?_
????????????????????????????????????Len(ParamArr(iPrm))
- InStr(ParamArr(iPrm), " ?( " ))
????????????????????????????Trim(ParamArr(iPrm))
????????????????????????End?If
????????????????????????Header?
= ?Right(Header,?Len(Header)? - ?InStr(Header, " , " ))
????????????????????????iPrm?
= ?iPrm? - ? 1 ?
????????????????????????Loop?
????????????????????ParamArr(iPrm)?
= ?Header?
????????????????????
' Remove?trailing?brace?from?last?parameter.
????????????????????If?InStr(ParamArr(iPrm),? " ) " )? <> ? 0 ?Then
????????????????????????ParamArr(iPrm)?
= ?Left(ParamArr(iPrm),?_
????????????????????????????????InStr(ParamArr(iPrm),?
" ) " )? - ? 1 )
????????????????????????Trim(ParamArr(iPrm))
????????????????????End?If
????????????????Else?
' Possibly?one?param.
????????????????????Redim?ParamArr( 1 )
????????????????????Header?
= ?Right(Header,?Len(Header)? - ? 1 )? ' ?Strip?the?first?brace.
????????????????????Trim(Header)
????????????????????ParamArr(
1 )? = ?StripTabs(Header)
????????????????????If?InStr(ParamArr(
1 ),? " ) " )? <> ? 1 ?Then
????????????????????????ParamArr(
1 )? = ?Left(ParamArr( 1 ),?InStr(ParamArr( 1 ),? " ) " )? - ? 1 )
????????????????????????Trim(ParamArr(
1 ))
????????????????????????iPrmA?
= ? 1
????????????????????End?If
????????????????End?If

????????????????
' Position?the?cursor?one?line?above?the?selected?text.
????????????????ActiveDocument.Selection.LineUp
????????????????ActiveDocument.Selection.LineDown
????????????????ActiveDocument.Selection.StartOfLine
????????????????ActiveDocument.Selection.NewLine
????????????????????????????????
????????????????????????????????Descr?
= ? ""
????????????????????????????????ActiveDocument.Selection?
= ? " /** "
????????????????????????????????ActiveDocument.Selection.NewLine
????????????????????????????????ActiveDocument.Selection?
= ? " ?*?@Function?name:? " ? + ?fcName
????????????????????????????????ActiveDocument.Selection.NewLine
????????????????????????????????ActiveDocument.Selection?
= ? " *?@Description??:? "
????????????????????????????????ActiveDocument.Selection.NewLine
????????????????????????????????????????????????
????????????????
' Print?the?parameter?list.?
????????????????Last? = ?iPrmA
????????????????Do?While?iPrmA?
<> ? 0
????????????????????
' Remove?a?line?feed?from?any?of?the?arguments.
????????????????????If?InStr(ParamArr(iPrmA),?vbLf)? <> ? 0 ?Then
????????????????????????ParamArr(iPrmA)?
= ?Right(ParamArr(iPrmA),?_
????????????????????????????????(Len(ParamArr(iPrmA))?
- ?_
????????????????????????????????InStr(ParamArr(iPrmA),?vbLf)))
????????????????????????Trim(ParamArr(iPrmA))
????????????????????End?If
????????????????????ParamArr(iPrmA)?
= ?StripTabs(ParamArr(iPrmA))
????????????????????
' If?there?are?2+?parameters,?the?first?parameter?will?
???????????????????? ' have?a? ' ( ' ?prepended?to?it,?remove?it?here:
???????????????????? if ?iPrmA? = ?Last?AND?Last? <> ? 1 ?then
??????????????????????ParamArr(iPrmA)?
= ?Right(ParamArr(iPrmA),?_
????????????????????????????Len(ParamArr(iPrmA))?
- ? 1 )
????????????????????End?If
????????????????????ActiveDocument.Selection?
= ? " *?@Argument?????:? " ? + ?_
????????????????????????????ParamArr(iPrmA)?
????????????????????????????????????????ActiveDocument.Selection.NewLine
????????????????????iPrmA?
= ?iPrmA? - ? 1
????????????????Loop

????????????????????????????????ActiveDocument.Selection?
= ? " *?@Return?type??:? " ? + ?RetTp
????????????????????????????????ActiveDocument.Selection.NewLine
????????????????????????????????ActiveDocument.Selection?
= ? " */ " ?
????????????????????????????????ActiveDocument.Selection.NewLine

????????????????
' ActiveDocument.Selection?=?Descr
????????????Else
????????????????MsgBox(
" It?is?possible?that?the?function?you?are?trying?to " + _
????????????????????????
" ?work?with?has?a?syntax?error. " )
????????????End?
if
????????End?If
????Else
????????MsgBox(
" You?need?to?have?an?active?C/C++?document?open " + ?_
????????????????vbLF
+ " with?the?function?prototype?selected. " )
????End?If
End?Sub

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            欧美国产日韩视频| 99pao成人国产永久免费视频| 亚洲欧洲在线看| 韩国自拍一区| 香蕉av777xxx色综合一区| 亚洲午夜一级| 欧美精品一区二区在线播放| 欧美成人小视频| 在线成人亚洲| 久久久久国产精品厨房| 久久激情五月激情| 国产精品一区二区男女羞羞无遮挡 | 伊人影院久久| 欧美在线欧美在线| 久久久久一区二区三区| 国产日韩精品一区| 午夜精品一区二区三区四区| 欧美一区二区三区免费视频| 国产麻豆成人精品| 亚洲欧美欧美一区二区三区| 欧美亚洲专区| 国产亚洲精品资源在线26u| 性色一区二区三区| 久久久久这里只有精品| 激情偷拍久久| 蜜臀久久99精品久久久画质超高清| 亚洲成色最大综合在线| 日韩一区二区高清| 亚洲精品一区二区在线| 欧美激情无毛| 日韩一级欧洲| 欧美在线资源| 激情懂色av一区av二区av| 久久久久久久尹人综合网亚洲| 女生裸体视频一区二区三区| 亚洲国产一区二区三区在线播| 欧美大胆人体视频| 一区二区三区日韩在线观看| 欧美一区二区三区四区在线观看| 国产亚洲精品高潮| 免费观看在线综合色| 亚洲精品在线二区| 欧美在线综合| 亚洲国产成人精品久久| 欧美精品一区二区精品网| 亚洲精品一区二区三区在线观看| 亚洲自拍偷拍视频| 狠狠色丁香久久婷婷综合丁香| 免费不卡亚洲欧美| 亚洲精品日韩在线观看| 欧美一区二区三区免费看| 黄色成人精品网站| 欧美日韩免费一区二区三区| 亚洲欧美日韩一区二区三区在线观看 | 国产欧美一区二区三区沐欲 | 亚洲六月丁香色婷婷综合久久| 亚洲欧美日韩国产综合精品二区| 黑人中文字幕一区二区三区| 欧美精品一区二| 久久av一区二区三区漫画| 亚洲黄色性网站| 欧美中文字幕不卡| 一本到12不卡视频在线dvd| 国产午夜久久久久| 欧美日韩一区二区免费视频| 久久久久久亚洲精品不卡4k岛国| 99精品国产在热久久婷婷| 猫咪成人在线观看| 香蕉尹人综合在线观看| 亚洲日本激情| 影音先锋国产精品| 国产精品普通话对白| 欧美aaaaaaaa牛牛影院| 午夜精品一区二区三区在线播放 | 欧美日韩一区二区三区在线| 午夜影院日韩| 一区二区不卡在线视频 午夜欧美不卡在 | 欧美日韩高清在线播放| 久久久精品免费视频| 亚洲视频福利| 亚洲日韩欧美视频| 久久综合五月天婷婷伊人| 亚洲欧美另类综合偷拍| 日韩亚洲欧美在线观看| 亚洲国产一区二区三区在线播| 国产日韩欧美精品一区| 国产精品成人一区二区三区夜夜夜| 欧美成人a视频| 久久久久女教师免费一区| 欧美一区视频在线| 亚洲一区精品在线| 这里是久久伊人| 日韩午夜免费视频| 亚洲品质自拍| 亚洲精品一区二区三| 亚洲第一页在线| 欧美大片一区二区| 欧美成人中文字幕| 欧美成人精品在线观看| 久久躁日日躁aaaaxxxx| 久久精品成人| 久久久久国色av免费观看性色| 欧美一级艳片视频免费观看| 亚洲欧美日韩在线高清直播| 亚洲视频在线观看| 亚洲一区二区三区国产| 亚洲欧美激情诱惑| 欧美一区成人| 久久精品在线| 牛牛国产精品| 最新日韩av| 99这里只有久久精品视频| 在线一区二区三区四区| 国产精品99久久99久久久二8| 亚洲一区二区久久| 欧美一区二区三区免费视| 久久激情视频免费观看| 美女啪啪无遮挡免费久久网站| 欧美成人午夜免费视在线看片| 欧美国产视频在线| 国产精品国产自产拍高清av| 国产欧美一区视频| 亚洲电影成人| 亚洲视屏一区| 久久国产手机看片| 欧美wwwwww| 亚洲开发第一视频在线播放| 亚洲一区二区av电影| 久久成人免费网| 欧美韩国日本一区| 国产精品视频大全| 亚洲国产你懂的| 亚洲在线国产日韩欧美| 久久久久久婷| 亚洲人成在线播放| 性欧美超级视频| 欧美激情一二区| 国产视频不卡| 日韩亚洲精品在线| 久久久久久亚洲精品杨幂换脸| 欧美大秀在线观看| 亚洲天堂激情| 欧美不卡视频| 国产一区二区三区四区hd| 日韩视频免费观看高清在线视频 | 欧美一区二区在线免费播放| 男人的天堂亚洲在线| 国产精品视频在线观看| 亚洲国产日日夜夜| 欧美在线欧美在线| 亚洲欧洲精品一区二区三区| 午夜欧美精品久久久久久久| 欧美极品影院| 黄色亚洲在线| 羞羞答答国产精品www一本 | 亚洲第一精品福利| 香蕉免费一区二区三区在线观看 | 亚洲高清视频一区二区| 午夜精品三级视频福利| 亚洲高清激情| 久久综合免费视频影院| 国产欧美一区二区精品秋霞影院 | av成人免费| 欧美v亚洲v综合ⅴ国产v| 亚洲欧美卡通另类91av | 国产久一道中文一区| 99人久久精品视频最新地址| 久久这里只有| 欧美一级艳片视频免费观看| 国产精品久久久久久久7电影 | 美女尤物久久精品| 国产一区二区中文字幕免费看| 亚洲性人人天天夜夜摸| 亚洲日韩成人| 欧美电影打屁股sp| 亚洲国产一区视频| 欧美成人国产一区二区| 久久疯狂做爰流白浆xx| 国产免费亚洲高清| 欧美一区二区三区免费观看| 亚洲夜晚福利在线观看| 欧美日韩在线视频一区二区| 一区二区三区免费观看| 亚洲精品午夜精品| 欧美人与禽猛交乱配| 日韩亚洲不卡在线| 亚洲乱码精品一二三四区日韩在线| 另类欧美日韩国产在线| 亚洲成色www久久网站| 免费日韩精品中文字幕视频在线| 久久精品视频在线| 在线免费高清一区二区三区| 免费成人高清视频| 乱码第一页成人| 亚洲伦理在线免费看| 亚洲精品影视| 国产精品一区二区三区成人| 欧美在线观看视频一区二区三区| 欧美一区二区三区日韩视频| 国内精品视频在线播放|