Page 1 of 1
Microsoft visual studio, C++?
Posted: Sat Jan 06, 2007 10:10 pm
by skavoovie_blind9
Got an exam on this on monday. Brickin' it coz I havn't had time to do much revision. If anybody is familiar with this program can you tell me what project type I need to use to write a simple "Hello world" program please.
Safe

Posted: Sat Jan 06, 2007 11:03 pm
by robot
just a blank, empty c++ project would do the trick. think it's 'console app' or something under ms vc++.
Posted: Sat Jan 06, 2007 11:37 pm
by skavoovie_blind9
Wicked mate thanks. I'll check it out now

Posted: Sun Jan 07, 2007 2:54 pm
by skavoovie_blind9
Mate do you know what the difference between #include "stdafx.h" and #include <stdio> is?
We've bin using <stdio> at uni but can't seem to use it on my version(visual studio 2005) although the code still works all the same.
For a variable asighnment what type of program type would be best as it is <iostream> as far as I know.
Sorry if I aint makin sense I'm just gettin to grasps with learnin this foreign language.
help appreciated
safeness
Posted: Sun Jan 07, 2007 6:27 pm
by wixsta
#include <iostream>
using namespace std;
int main()
{
cout << "Hello World" << endl;
return 0; // Program exit = OK
}
that should work