This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
haas:spring2015:cprog:projects:cci0 [2015/01/20 12:25] – created wedge | haas:spring2015:cprog:projects:cci0 [2015/01/20 12:50] (current) – wedge | ||
---|---|---|---|
Line 39: | Line 39: | ||
====Mailing List==== | ====Mailing List==== | ||
- | Using the resources found on the course homepage (or the lab46 website in general), locate and subscribe a preferred and frequently checked e-mail address to the class mailing list (known as **DATA**). | + | Using the resources found on the course homepage (or the lab46 website in general), locate and subscribe a preferred and frequently checked e-mail address to the class mailing list (known as **CPROG**). |
We will use this for class discussions (along with irc, the notes wiki page, your Opus, etc.) and to disseminate announcements and other information. | We will use this for class discussions (along with irc, the notes wiki page, your Opus, etc.) and to disseminate announcements and other information. | ||
Line 71: | Line 71: | ||
As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World** | As a first week exercise, I would like you to implement, successfully compile, and verify correct execution of the best first program every great programmer writes: **Hello World** | ||
+ | Code will be as follows: | ||
+ | |||
+ | <code c 1> | ||
+ | /* | ||
+ | * hello.c - the first best C program ever | ||
+ | * | ||
+ | * written by: your name | ||
+ | */ | ||
+ | #include < | ||
+ | |||
+ | int main() | ||
+ | { | ||
+ | fprintf(stdout, | ||
+ | return (0); // return a success status to OS | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | Your task will be to transcribe this code (sans line numbers), into a source file (call it **hello.c** for simplicity), | ||
+ | |||
+ | Verify you typed in everything correctly by compiling it; you want no warnings or errors: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | Get to know/ask questions about that **gcc** line... this will not be the only time you see it. | ||
+ | |||
+ | Finally, verify the program runs as anticipated: | ||
+ | |||
+ | <cli> | ||
+ | lab46: | ||
+ | Hello, World! | ||
+ | lab46: | ||
+ | </ | ||
+ | |||
+ | Once satisfied, be sure to submit the program as indicated below. | ||
=====Submission Criteria===== | =====Submission Criteria===== | ||
To be successful in this project, the following criteria must be met: | To be successful in this project, the following criteria must be met: | ||
Line 95: | Line 132: | ||
<cli> | <cli> | ||
- | lab46: | + | lab46: |
- | Submitting | + | Submitting |
-> hello.c(OK) | -> hello.c(OK) | ||