Today is our first program written by Alex Jilas :) and please take a look.
#include < stdio.h> //It's necessary to include this header to use "printf" instruction
#include < stdlib.h> //We're using this header because of system("pause") instruction
int main() //Main function (we're going to talk about later)
{
printf("Hello World :) "); //write "Hello world" in the screen
system("pause"); //Wait for something
}
If you don't use the system("pause") function you're not going to see the phrase you wrote before, in this case "Hello World", compile this code and then compile it again without the system("pause") and notice the difference.
That's all for today!!!
terça-feira, 14 de outubro de 2008
Assinar:
Postar comentários (Atom)
Nenhum comentário:
Postar um comentário