Created
March 26, 2010 14:38
-
-
Save wbzyl/344950 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *stdio.h* declares *puts* | |
#include <stdio.h> | |
//### code hello world | |
// every C program contains function *main*. | |
int main (int argc, char *argv[]) { | |
puts("hello world"); | |
return 0; | |
} | |
// that’s it! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=utf-8"> | |
<title>rocco.c</title> | |
<link rel="stylesheet" href="http://jashkenas.github.com/docco/resources/docco.css"> | |
</head> | |
<body> | |
<div id='container'> | |
<div id="background"></div> | |
<table cellspacing=0 cellpadding=0> | |
<thead> | |
<tr> | |
<th class=docs><h1>rocco.c</h1></th> | |
<th class=code></th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr id='section-1'> | |
<td class=docs> | |
<div class="octowrap"> | |
<a class="octothorpe" href="#section-1">#</a> | |
</div> | |
<p> <em>stdio.h</em> declares <em>puts</em></p> | |
</td> | |
<td class=code> | |
<div class='highlight'><pre><span class="cp">#include <stdio.h></span> | |
<span class="cp"># DIVIDER</span> | |
<span class="cp"># DIVIDER</span> | |
<span class="kt">int</span> <span class="nf">main</span> <span class="p">(</span><span class="kt">int</span> <span class="n">argc</span><span class="p">,</span> <span class="kt">char</span> <span class="o">*</span><span class="n">argv</span><span class="p">[])</span> <span class="p">{</span> | |
<span class="n">puts</span><span class="p">(</span><span class="s">"hello world"</span><span class="p">);</span> | |
<span class="k">return</span> <span class="mi">0</span><span class="p">;</span> | |
<span class="p">}</span> | |
<span class="cp"># DIVIDER</span></pre></div> | |
</td> | |
</tr> | |
<tr id='section-2'> | |
<td class=docs> | |
<div class="octowrap"> | |
<a class="octothorpe" href="#section-2">#</a> | |
</div> | |
<h3>code hello world</h3> | |
</td> | |
<td class=code> | |
<div class='highlight'><pre></pre></div> | |
</td> | |
</tr> | |
<tr id='section-3'> | |
<td class=docs> | |
<div class="octowrap"> | |
<a class="octothorpe" href="#section-3">#</a> | |
</div> | |
<p> every C program contains function <em>main</em>.</p> | |
</td> | |
<td class=code> | |
<div class='highlight'><pre></pre></div> | |
</td> | |
</tr> | |
<tr id='section-4'> | |
<td class=docs> | |
<div class="octowrap"> | |
<a class="octothorpe" href="#section-4">#</a> | |
</div> | |
<p> that’s it!</p> | |
</td> | |
<td class=code> | |
<div class='highlight'><pre></pre></div> | |
</td> | |
</tr> | |
</table> | |
</div> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment