Microsoft visual studio, C++?

hardware, software, tips and tricks
Forum rules
By using this "Production" sub-forum, you acknowledge that you have read, understood and agreed with our terms of use for this site. Click HERE to read them. If you do not agree to our terms of use, you must exit this site immediately. We do not accept any responsibility for the content, submissions, information or links contained herein. Users posting content here, do so completely at their own risk.

Quick Link to Feedback Forum
Locked
skavoovie_blind9
Posts: 629
Joined: Fri Jul 21, 2006 8:08 am
Location: ManCHESTer

Microsoft visual studio, C++?

Post by skavoovie_blind9 » Sat Jan 06, 2007 10:10 pm

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
:(

User avatar
robot
Posts: 53
Joined: Wed Jun 07, 2006 8:41 am
Location: London

Post by robot » Sat Jan 06, 2007 11:03 pm

just a blank, empty c++ project would do the trick. think it's 'console app' or something under ms vc++.

skavoovie_blind9
Posts: 629
Joined: Fri Jul 21, 2006 8:08 am
Location: ManCHESTer

Post by skavoovie_blind9 » Sat Jan 06, 2007 11:37 pm

Wicked mate thanks. I'll check it out now :W:

skavoovie_blind9
Posts: 629
Joined: Fri Jul 21, 2006 8:08 am
Location: ManCHESTer

Post by skavoovie_blind9 » Sun Jan 07, 2007 2:54 pm

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

User avatar
wixsta
Posts: 3
Joined: Mon Dec 18, 2006 5:53 pm

Post by wixsta » Sun Jan 07, 2007 6:27 pm

#include <iostream>
using namespace std;

int main()
{

cout << "Hello World" << endl;

return 0; // Program exit = OK
}


that should work

Locked

Who is online

Users browsing this forum: No registered users and 0 guests