﻿<?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++博客-C/C++ for ever-文章分类-C/C++基础</title><link>http://www.cppblog.com/blog-weiyang/category/4732.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 31 May 2008 04:46:34 GMT</lastBuildDate><pubDate>Sat, 31 May 2008 04:46:34 GMT</pubDate><ttl>60</ttl><item><title>C/C++书籍推荐</title><link>http://www.cppblog.com/blog-weiyang/articles/28283.html</link><dc:creator>C/C++ for ever</dc:creator><author>C/C++ for ever</author><pubDate>Wed, 18 Jul 2007 07:17:00 GMT</pubDate><guid>http://www.cppblog.com/blog-weiyang/articles/28283.html</guid><wfw:comment>http://www.cppblog.com/blog-weiyang/comments/28283.html</wfw:comment><comments>http://www.cppblog.com/blog-weiyang/articles/28283.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/blog-weiyang/comments/commentRss/28283.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/blog-weiyang/services/trackbacks/28283.html</trackback:ping><description><![CDATA[<p>学习总是要看看书籍的，C/C++书籍实在太多了，我想至少应该看看下面几本吧<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emteeth.gif" align=absMiddle border=0><br><br>《The C Programming Language》<br>权威经典书籍，强烈推荐！<br><br>《The C++ Programming Language》<br>权威经典书籍，强烈推荐！<br><br>《C++ Primer》<br>入门经典书籍，强烈推荐！（目前最新为第四版，但我觉得第三版要更好些<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emsmilep.gif" align=absMiddle border=0>）<br><br>阅读顺序：<br>《The C Programming Language》<br>《C++ Primer》<br>《The C++ Programming Language》</p>
<img src ="http://www.cppblog.com/blog-weiyang/aggbug/28283.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/blog-weiyang/" target="_blank">C/C++ for ever</a> 2007-07-18 15:17 <a href="http://www.cppblog.com/blog-weiyang/articles/28283.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>最简单的C/C++程序的建立和运行</title><link>http://www.cppblog.com/blog-weiyang/articles/28222.html</link><dc:creator>C/C++ for ever</dc:creator><author>C/C++ for ever</author><pubDate>Tue, 17 Jul 2007 13:28:00 GMT</pubDate><guid>http://www.cppblog.com/blog-weiyang/articles/28222.html</guid><wfw:comment>http://www.cppblog.com/blog-weiyang/comments/28222.html</wfw:comment><comments>http://www.cppblog.com/blog-weiyang/articles/28222.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/blog-weiyang/comments/commentRss/28222.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/blog-weiyang/services/trackbacks/28222.html</trackback:ping><description><![CDATA[最简单的C/C++程序的建立和运行步骤当然也是最简单的啦<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emwink.gif" align=absMiddle border=0>，Let's go<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emfist.gif" align=absMiddle border=0><br><br>一、建立程序源代码<br>&nbsp;&nbsp;&nbsp; 1、在命令行下输入<span style="COLOR: red">emacs example.cpp</span>。<br>&nbsp;&nbsp;&nbsp; 2、进入编辑器后输入以下内容：<br><br><span style="COLOR: red">#include &lt;stdio.h&gt;</span><br style="COLOR: red"><br style="COLOR: red"><span style="COLOR: red">int main(int argc, char *argv[])</span><br style="COLOR: red"><span style="COLOR: red">{</span><br style="COLOR: red"><span style="COLOR: red">&nbsp;&nbsp;&nbsp; printf("Hello world!\n");</span><br style="COLOR: red"><span style="COLOR: red">&nbsp;&nbsp;&nbsp; return 0;</span><br style="COLOR: red"><span style="COLOR: red">}</span><br><br>&nbsp;&nbsp;&nbsp; 3、按下Ctrl+x、Ctrl+s保存；能后再按下Ctrl+x、Ctrl+c退出编辑。<br><br>二、生成可执行文件<br>&nbsp;&nbsp;&nbsp; 在命令行下输入<span style="COLOR: red">g++ -o out example.cpp</span>。<br><br>三、执行可执行文件<br>&nbsp;&nbsp;&nbsp; 在命令行下输入<span style="COLOR: red">./out</span>。<br><span style="COLOR: red"><br><font color=#000000>自己看运行结果吧。打完收工<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emteeth.gif" align=absMiddle border=0></font></span>
<img src ="http://www.cppblog.com/blog-weiyang/aggbug/28222.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/blog-weiyang/" target="_blank">C/C++ for ever</a> 2007-07-17 21:28 <a href="http://www.cppblog.com/blog-weiyang/articles/28222.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>C/C++基本开发环境的建立</title><link>http://www.cppblog.com/blog-weiyang/articles/28189.html</link><dc:creator>C/C++ for ever</dc:creator><author>C/C++ for ever</author><pubDate>Tue, 17 Jul 2007 05:31:00 GMT</pubDate><guid>http://www.cppblog.com/blog-weiyang/articles/28189.html</guid><wfw:comment>http://www.cppblog.com/blog-weiyang/comments/28189.html</wfw:comment><comments>http://www.cppblog.com/blog-weiyang/articles/28189.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/blog-weiyang/comments/commentRss/28189.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/blog-weiyang/services/trackbacks/28189.html</trackback:ping><description><![CDATA[要用C/C++语言开发程序当然要先建立开发环境啦<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emsmile.gif" align=absMiddle border=0>，不说废话，行动<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emfist.gif" align=absMiddle border=0><br><br>一、操作系统<br>&nbsp;&nbsp;&nbsp; Debian GNU/Linux 4.0 rev0<br>&nbsp;&nbsp;&nbsp; 安装步骤：<br>&nbsp;&nbsp;&nbsp; 1、确保计算机硬件可以连接上Internet。<br>&nbsp;&nbsp;&nbsp; 2、下载debian-40r0-i386-netinst.iso并刻录成光盘。<br>&nbsp;&nbsp;&nbsp; 3、用刻录好的光盘启动计算机。<br>&nbsp;&nbsp;&nbsp; 4、回答问题，搞定。<br><br>二、编译器<br>&nbsp;&nbsp;&nbsp; GCC<br>&nbsp;&nbsp;&nbsp; 安装步骤：<br>&nbsp;&nbsp;&nbsp; root用户登陆状态下输入<span style="COLOR: red">apt-get install build-essential</span>搞定。<br><br>三、编辑器<br>&nbsp;&nbsp;&nbsp; Emacs<br>&nbsp;&nbsp;&nbsp; 安装步骤：<br>&nbsp;&nbsp;&nbsp; root用户登陆状态下输入<span style="COLOR: red">apt-get install emacs21</span>搞定。<br><br>建立完毕<img src="http://www.cppblog.com/CuteSoft_Client/CuteEditor/images/emteeth.gif" align=absMiddle border=0>
<img src ="http://www.cppblog.com/blog-weiyang/aggbug/28189.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/blog-weiyang/" target="_blank">C/C++ for ever</a> 2007-07-17 13:31 <a href="http://www.cppblog.com/blog-weiyang/articles/28189.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>