Nope, not too old. But, you made one mistake, every function needs a type when declared.
[php]
int main()
{
//code
}
[/php]
Ya i put int main
i did it fast i did not copy and paste so that why i forgot to add it. Now I checked another tutorial and i need to add stdafx.h... In the other tutorial i didnt had too, but it didnt worked too.