-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (32 loc) · 1.01 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html>
<title>Example</title>
<body>
<div id="elc"></div>
<h2>Intro to C</h2> Every full C program begins inside a
function called "main". A function is simply a collection
of commands that do "something". The main function is
always called when the program first executes. From main,
we can call other functions, whether they be written by
us or by others or use built-in language features. To
access the standard functions that comes with your
compiler, you need to include a header with the #include
directive. What this does is effectively take everything
in the header and paste it into your program. Let's look
at a working program:
<pre class="code">
#include <stdio.h>
int main() {
printf( "I am alive! Beware.\n" );
return 0;
}</pre>
<h2>Here is some more Code!</h2>
<pre class="code">
#include <stdio.h>
int main() {
printf("I am a second piece of code\n");
return 0;
}</pre>
<script type="text/javascript" src="elc.js"></script>
</body>
</html>