﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-CPP&amp;&amp;设计模式小屋-随笔分类-其他</title><link>http://www.cppblog.com/shenhuafeng/category/3328.html</link><description>(STL,Templete,Generric Programming COM,COM+,ActiveX)---Windows &amp;&amp; Linux &amp;&amp;OpenSource
</description><language>zh-cn</language><lastBuildDate>Tue, 20 May 2008 00:23:28 GMT</lastBuildDate><pubDate>Tue, 20 May 2008 00:23:28 GMT</pubDate><ttl>60</ttl><item><title>开春第一贴 猪年第一贴</title><link>http://www.cppblog.com/shenhuafeng/archive/2007/02/18/18851.html</link><dc:creator>CPP&amp;&amp;设计模式小屋</dc:creator><author>CPP&amp;&amp;设计模式小屋</author><pubDate>Sat, 17 Feb 2007 16:04:00 GMT</pubDate><guid>http://www.cppblog.com/shenhuafeng/archive/2007/02/18/18851.html</guid><wfw:comment>http://www.cppblog.com/shenhuafeng/comments/18851.html</wfw:comment><comments>http://www.cppblog.com/shenhuafeng/archive/2007/02/18/18851.html#Feedback</comments><slash:comments>2</slash:comments><wfw:commentRss>http://www.cppblog.com/shenhuafeng/comments/commentRss/18851.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shenhuafeng/services/trackbacks/18851.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 开春第一贴 猪年第一贴&nbsp;&nbsp;<a href='http://www.cppblog.com/shenhuafeng/archive/2007/02/18/18851.html'>阅读全文</a><img src ="http://www.cppblog.com/shenhuafeng/aggbug/18851.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shenhuafeng/" target="_blank">CPP&&设计模式小屋</a> 2007-02-18 00:04 <a href="http://www.cppblog.com/shenhuafeng/archive/2007/02/18/18851.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>关于 ## ，#以及#@的用法</title><link>http://www.cppblog.com/shenhuafeng/archive/2007/01/19/17779.html</link><dc:creator>CPP&amp;&amp;设计模式小屋</dc:creator><author>CPP&amp;&amp;设计模式小屋</author><pubDate>Fri, 19 Jan 2007 06:03:00 GMT</pubDate><guid>http://www.cppblog.com/shenhuafeng/archive/2007/01/19/17779.html</guid><wfw:comment>http://www.cppblog.com/shenhuafeng/comments/17779.html</wfw:comment><comments>http://www.cppblog.com/shenhuafeng/archive/2007/01/19/17779.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/shenhuafeng/comments/commentRss/17779.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shenhuafeng/services/trackbacks/17779.html</trackback:ping><description><![CDATA[先讲#和#@字符：这两个比较类似：前者是将所代表的东西字符串化，后者是将代表的东西字符化。<br /><br />而##可以说是个符号粘合剂。（Modern C++中用来做编译时期内存检查--2.1节 就是用了这个符号）<br /><br /><font color="#ff0000">#的用法</font><br /><p>The number-sign or "stringizing" operator (<b>#</b>) converts macro parameters (after expansion) to string constants. It is used only with macros that take arguments. If it precedes a formal parameter in the macro definition, the actual argument passed by the macro invocation is enclosed in quotation marks and treated as a string literal. The string literal then replaces each occurrence of a combination of the stringizing operator and formal parameter within the macro definition.</p><p>White space preceding the first token of the actual argument and following the last token of the actual argument is ignored. Any white space between the tokens in the actual argument is reduced to a single white space in the resulting string literal. Thus, if a comment occurs between two tokens in the actual argument, it is reduced to a single white space. The resulting string literal is automatically concatenated with any adjacent string literals from which it is separated only by white space. </p><p>Further, if a character contained in the argument usually requires an escape sequence when used in a string literal (for example, the quotation mark (<b>"</b>) or backslash (<b>\</b>) character), the necessary escape backslash is automatically inserted before the character. The following example shows a macro definition that includes the stringizing operator and a main function that invokes the macro:</p><pre class="code">#define stringer( x ) printf( #x "\n" )

int main()
{
    stringer( In quotes in the printf function call\n ); 
    stringer( "In quotes when printed to the screen"\n );   
    stringer( "This: \"  prints an escaped double quote" );
}</pre><p>Such invocations would be expanded during preprocessing, producing the following code:</p><pre class="code">int main()
{
   printf( "In quotes in the printf function call\n" "\n" );
   printf( "\"In quotes when printed to the screen\"\n" "\n" );
   printf( "\"This: \\\" prints an escaped double quote\"" "\n" );
}</pre><p>When the program is run, screen output for each line is as follows:</p><pre class="code">In quotes in the printf function call

"In quotes when printed to the screen"

"This: \" prints an escaped double quotation mark"</pre><p><b>Microsoft Specific </b></p><p>The Microsoft C (versions 6.0 and earlier) extension to the ANSI C standard that previously expanded macro formal arguments appearing inside string literals and character constants is no longer supported. Code that relied on this extension should be rewritten using the stringizing (<b>#</b>) operator.</p><p><strong>END Microsoft Specific<br /></strong><font color="#ff0000"><br />#@的用法</font><br /><br /></p><p><strong>Microsoft Specific </strong></p><p>The charizing operator can be used only with arguments of macros. If #@ precedes a formal parameter in the definition of the macro, the actual argument is enclosed in single quotation marks and treated as a character when the macro is expanded. For example:</p><pre class="code">#define makechar(x)  #@x</pre><p>causes the statement</p><pre class="code">a = makechar(b);</pre><p>to be expanded to</p><pre class="code">a = 'b';</pre><p>The single-quotation character cannot be used with the charizing operator.</p><p><strong>END Microsoft Specific<br /><br /></strong><font color="#ff0000">##的用法<br /></font></p><p><font color="#000000">The double-number-sign or "token-pasting" operator (<b>##</b>), which is sometimes called the "merging" operator, is used in both object-like and function-like macros. It permits separate tokens to be joined into a single token and therefore cannot be the first or last token in the macro definition.</font></p><p><font color="#000000">If a formal parameter in a macro definition is preceded or followed by the token-pasting operator, the formal parameter is immediately replaced by the unexpanded actual argument. Macro expansion is not performed on the argument prior to replacement. </font></p><p><font color="#000000">Then, each occurrence of the token-pasting operator in <i>token-string</i> is removed, and the tokens preceding and following it are concatenated. The resulting token must be a valid token. If it is, the token is scanned for possible replacement if it represents a macro name. The identifier represents the name by which the concatenated tokens will be known in the program before replacement. Each token represents a token defined elsewhere, either within the program or on the compiler command line. White space preceding or following the operator is optional.</font></p><p><font color="#000000">This example illustrates use of both the stringizing and token-pasting operators in specifying program output:</font></p><pre class="code"><font color="#000000">#define paster( n ) printf( "token" #n " = %d", token##n )
int token9 = 9;</font></pre><p><font color="#000000">If a macro is called with a numeric argument like</font></p><pre class="code"><font color="#000000">paster( 9 );</font></pre><p><font color="#000000">the macro yields</font></p><pre class="code"><font color="#000000">printf( "token" "9" " = %d", token9 );</font></pre><p><font color="#000000">which becomes</font></p><pre class="code"><font color="#000000">printf( "token9 = %d", token9 );</font></pre><img src ="http://www.cppblog.com/shenhuafeng/aggbug/17779.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shenhuafeng/" target="_blank">CPP&&设计模式小屋</a> 2007-01-19 14:03 <a href="http://www.cppblog.com/shenhuafeng/archive/2007/01/19/17779.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>帮朋友发个招聘公告</title><link>http://www.cppblog.com/shenhuafeng/archive/2007/01/15/17635.html</link><dc:creator>CPP&amp;&amp;设计模式小屋</dc:creator><author>CPP&amp;&amp;设计模式小屋</author><pubDate>Mon, 15 Jan 2007 05:24:00 GMT</pubDate><guid>http://www.cppblog.com/shenhuafeng/archive/2007/01/15/17635.html</guid><wfw:comment>http://www.cppblog.com/shenhuafeng/comments/17635.html</wfw:comment><comments>http://www.cppblog.com/shenhuafeng/archive/2007/01/15/17635.html#Feedback</comments><slash:comments>10</slash:comments><wfw:commentRss>http://www.cppblog.com/shenhuafeng/comments/commentRss/17635.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shenhuafeng/services/trackbacks/17635.html</trackback:ping><description><![CDATA[
		<p>帮朋友发个招聘公告：<br /><br />招聘C/C++开发人员</p>
		<p>要求：  熟悉STL，各类常用算法</p>
		<p>工作地点： 上海</p>
		<p>公司性质： 公司为某美国Nasdaq上市公司，员工福利与待遇从优，薪资高于行业平均水平，福利待遇颇佳。</p>
		<p>主要工作内容: 网络IM类服务器端、客户端开发。</p>
		<p>来信必复 <a href="mailto:sunhuiNO1@hotmail.com">mailto:sunhuiNO1@hotmail.com</a>  <br /><br />有兴趣的赶快Mail。</p>
<img src ="http://www.cppblog.com/shenhuafeng/aggbug/17635.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shenhuafeng/" target="_blank">CPP&&设计模式小屋</a> 2007-01-15 13:24 <a href="http://www.cppblog.com/shenhuafeng/archive/2007/01/15/17635.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>春节联欢晚会节目单</title><link>http://www.cppblog.com/shenhuafeng/archive/2006/12/13/16371.html</link><dc:creator>CPP&amp;&amp;设计模式小屋</dc:creator><author>CPP&amp;&amp;设计模式小屋</author><pubDate>Wed, 13 Dec 2006 07:26:00 GMT</pubDate><guid>http://www.cppblog.com/shenhuafeng/archive/2006/12/13/16371.html</guid><wfw:comment>http://www.cppblog.com/shenhuafeng/comments/16371.html</wfw:comment><comments>http://www.cppblog.com/shenhuafeng/archive/2006/12/13/16371.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/shenhuafeng/comments/commentRss/16371.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/shenhuafeng/services/trackbacks/16371.html</trackback:ping><description><![CDATA[
		<span class="bold">2007年CCTV春节联欢晚会节目单!!!</span>
		<br />
		<br />
		<div style="FONT-SIZE: 12px">序曲 舞春风 八一歌舞团 吉林歌舞团 中国民族歌舞团<br />解放军空军部文艺团 河南嵩山武术学校 甘肃杂技团<br />主持人致新年贺词： 毕福剑 倪萍 亚宁 管彤 张政 施忆<br />01 开场歌舞 欢乐中国年年红 羽泉 TWINS（中国香港）许慧欣（中国台湾）韩静（中国澳门）<br />02群口相声 七天拜大年 姜昆 李文华 戴志诚 汪洋 石富宽 张大礼 武宾<br />03歌舞 红对联 张燕 刘宾<br />04小品 迎财神 潘长江 闫学晶 黄晓娟 句号 柏青<br />05杂技舞蹈 龙腾虎跃 济南杂技团<br />06歌组合 小神仙和小仙女+月亮街+中华传统美德故事+我们的家园<br />07化装相声 令人毛骨悚然的冷笑 冯巩 刘金山 林永健<br />08舞蹈组合 朝鲜舞+新疆舞+傣族舞+彝族舞+蒙古舞+佤族舞<br />助演：女子十二乐坊 芳华十八组合<br />09魔术 第二天堂 李宁 林俊杰<br />10小品 药店 黄宏 刘亦菲 巩汉林 <br />11舞蹈 我的梦 中国残疾人艺术团<br />12相声 送礼 王敏 陈寒柏<br />13互动节目 请您参与 省市16家电视台共同直播<br />深入到家征集型节目<br />14歌舞 新气象 李沁东 毛一丞<br />15小品 彩迷 郭冬林 郭达 蔡明<br />16歌舞 海纳百川 廖昌永 梦 鸽 罗宁娜 杨九红<br />17杂技 绸 武汉杂技团<br />18相声 猪年说猪 刘惠 李嘉存<br />19歌舞 美人吟 彭丽媛<br />20戏曲 七仙女拜年 刘桂娟 赵秀君 李 洁 李佩虹 于魁智<br />杨春霞 赵葆秀 孟广禄 耿巧云 管 波<br />21小品 新面子 赵本山 宋丹丹 范伟<br />22互动节目 春晚剧组到我家 省市16家电视台<br />23歌组合 四季奏鸣曲 春 桃花朵朵开 阿牛 + 夏 宁夏 梁静茹 +秋 秋天不回来 王强 + 冬 发如雪 周杰伦<br />24小品 老爹老娘 孙涛 韩雪 魏积安<br />25歌舞 世上最美的女人是妈妈 s**<br />26音乐剧 守望奥运 刘翔 杜丽 罗雪娟 满文军 林依伦 满 江<br />27相声 新鲜事 牛群 大兵<br />28歌舞 家乡人 王宏伟 祖海<br />29歌舞 千面 阿朵<br />30零点仪式 全国大联欢 省市32家电视台<br />31歌组合 历届优秀春晚歌曲展<br />好运来 祖海+吉祥三宝+世纪春雨+欢聚一堂+变脸<br />32小品 武林新传 闫妮等<br />33歌舞 春夏秋冬又一年 演唱者：许波、胡瑶、刘海波、孙笑一、刘春梅、易秒英、哈辉、李辉、袁慧琴、刘桂娟、李佩红、李胜素；<br />34舞蹈 四小青蛙和四小天鹅<br />35歌舞 喜事闹??过大年??演唱者：红岩、火风、吕薇、梁音、阿洛、湘女、鲍蓉、邓春蓉<br />36结束曲《难忘今宵》演唱者：殷秀梅、郁钧剑</div>
<img src ="http://www.cppblog.com/shenhuafeng/aggbug/16371.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/shenhuafeng/" target="_blank">CPP&&设计模式小屋</a> 2006-12-13 15:26 <a href="http://www.cppblog.com/shenhuafeng/archive/2006/12/13/16371.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>