<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ada的博客 – 点滴分享，用心品味生活 &#187; main</title>
	<atom:link href="http://www.jianghuimin.com/tag/main/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jianghuimin.com</link>
	<description>喜欢产品设计，移动开发，捣鼓网站相关东东</description>
	<lastBuildDate>Sun, 29 Jan 2012 01:28:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>visual stdio 中的_tmain是什么？</title>
		<link>http://www.jianghuimin.com/program/cplusplus/1028.html</link>
		<comments>http://www.jianghuimin.com/program/cplusplus/1028.html#comments</comments>
		<pubDate>Mon, 22 Feb 2010 02:20:20 +0000</pubDate>
		<dc:creator>mood</dc:creator>
				<category><![CDATA[c++]]></category>
		<category><![CDATA[main]]></category>

		<guid isPermaLink="false">http://www.jianghuimin.com/?p=1028</guid>
		<description><![CDATA[当使用visual stdio建立工程后，默认的入口时int _tmain(int argc, _TCHAR* argv[]),而不是常见的main()函数。 实际上_tmain是main的别名定义在#include &#60;tchar.h&#62;中的#define _tmain main，必须包含此头文件才能编译通过。编译后认为main。 默认是把#include &#60;tchar.h&#62;放在预编译头文件中stdafx.h中的，大家可以打开看看。 对了，还没说为什么要用_tmain(),是为了保证移植unicode而加入的（一般_t、_T、T()这些东西都和unicode有关系）]]></description>
			<content:encoded><![CDATA[<p>当使用visual stdio建立工程后，默认的入口时int _tmain(int argc, _TCHAR* argv[]),而不是常见的main()函数。</p>
<p>实际上_tmain是main的别名定义在#include &lt;tchar.h&gt;中的#define _tmain main，必须包含此头文件才能编译通过。编译后认为main。</p>
<p>默认是把#include &lt;tchar.h&gt;放在预编译头文件中stdafx.h中的，大家可以打开看看。</p>
<p>对了，还没说为什么要用_tmain(),是为了保证移植unicode而加入的（一般_t、_T、T()这些东西都和unicode有关系）</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jianghuimin.com/program/cplusplus/1028.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

