<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>The C Programming Language on ChoJemmy</title><link>https://blog.izhouquan.com/categories/the-c-programming-language/</link><description>Recent content in The C Programming Language on ChoJemmy</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Fri, 11 Nov 2011 03:40:05 +0000</lastBuildDate><atom:link href="https://blog.izhouquan.com/categories/the-c-programming-language/index.xml" rel="self" type="application/rss+xml"/><item><title>Start Learning The C Programming Language</title><link>https://blog.izhouquan.com/post/wp-100/</link><pubDate>Fri, 28 Oct 2011 11:47:29 +0000</pubDate><guid>https://blog.izhouquan.com/post/wp-100/</guid><description>&lt;link rel="stylesheet" href="https://blog.izhouquan.com/wordpress-archive.css"&gt;&lt;div class="wordpress-original"&gt;&lt;p&gt;This is the first C programming language study note.&lt;/p&gt;&#10;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&#10;&lt;p&gt;I recently installed VC++ 2005 EXP edition.&lt;/p&gt;&#10;&lt;p&gt;1) I created a project name Radius and created two new items hello.cpp and area.cpp.&lt;/p&gt;&#10;&lt;p&gt;2) area.cpp is the first item and hello.cpp is the second one.&lt;/p&gt;&#10;&lt;p&gt;3) When I build the project Radius, I got the error&lt;/p&gt;&#10;&lt;p&gt;LNK2005: _main already defined in area.obj&lt;/p&gt;&#10;&lt;p&gt;This error is because of multiple definitions of main. You must have defined main in area.cpp as well as in hello.cpp. In C/C++ programs, you can write only one main per application.&lt;/p&gt;&#10;&lt;p&gt;Remove one definition of main and it should work fine.&lt;/p&gt;&#10;&lt;/div&gt;&#10;</description></item></channel></rss>