It reminds me that, a few months ago, I wanted to write
an "Hello world" program in C. It took me three compiles
before executing it. The successive attempts were:
#include <stdlib.h>
#include <stdio.h>
void main ()
{
printf "Hello world\n"
}
Oops, forgot that you need a semi-colon, even if followed
by a closing brace.
#include <stdlib.h>
#include <stdio.h>
void main ()
{
printf "Hello world\n";
}
What's wrong now? (time passes...) Ah yes, you need parentheses.
#include <stdlib.h>
#include <stdio.h>
void main ()
{
printf("Hello world\n");
}
Yeah, it works!