This
simple program displays a jaunty line of text. It's a favorite "first
day of class" warhorse, presenting the "main" function,
comments,and the #include header.
1.
Launch Miracle C.
2.
Create a source file. You can do this in one of three ways:
- Click
the
button
- Pressing
Ctrl + N
- Click
File and New
3.
Type the following code into the text window:
|
/*Hellowor.c*/
#include<stdio.h>
void
main()
{
printf("Hello,
world!");
}
|
4.
Save your file. You can do this in one of three ways:
- Click
the
button.
- Press
Ctrl + S.
- Click
File and Save .
5. Name your file,preserving the .c filename extension.
Miracle C will accept only file names of 8 characters or less, not
including the .c extension.

View
a printer-friendly version
|