![]() |
CS 2073 Engineering Programming
|
Below, "text" refers to: C All-in-One Desk Reference for Dummies, by Dan Gookin. C Programs from text.
For additional references see C References
/* dumb.c, page 17 */
#include <stdio.h>
int main() {
puts("Greetings, human!");
return(0);
}
| Greetings, human! |
/* hello1.c, pages 35-36 */
#include <stdio.h>
int main() {
printf("Sorry, can't talk now.\n");
printf("I'm busy!");
return(0); /* leave this off from here on */
}
| Sorry, can't talk now. I'm busy! |
/* stop2.c, page 37 */
#include <stdio.h>
int main() {
/* NOTE: added a beep to the following line
The \a is the Alert or bell character */
puts("\aStop: Unable to stop.");
puts("Missing fragus found in memory.");
}
| Stop: Unable to stop. Missing fragus found in memory. |