|
LITTLEBLACKDOG.COM
|
| Author |
Message |
i3lackmagik132
Cat Chaser


Joined: 17 Jul 2003 Posts: 516
Location: Turn right on Discimination Str.
|
Posted:
Tue Aug 12, 2003 6:51 pm Post subject: Beginner C++ Question |
|
I'm looking through this tutorial and it doesnt tell me which kind of project in the projects thingy on visual c++ The hello world script thing is. eg.ATL com Appwizard, win 32 dll and more. which project should it be?
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
|
_________________ Waiting for the chance to bite dyucheron
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 5438
Location: /var/log/cabin
|
Posted:
Tue Aug 12, 2003 7:24 pm Post subject: Re: Beginner C++ Question |
|
i3lackmagik132 wrote:I'm looking through this tutorial and it doesnt tell me which kind of project in the projects thingy on visual c++ The hello world script thing is. eg.ATL com Appwizard, win 32 dll and more. which project should it be?
#include <iostream.h>
int main()
{
cout << "Hello World!\n";
return 0;
}
First thing. You'll really annoy me calling it a script. It's not. It's C++.
Second thing. I don't know if your tutorial told you this, so I'll explain it anyway: 'cout' is the pre-defined stream object for the standard output device. The standard output device (STDOUT) is the console, so any data you pass to the stream will be displayed on the console.
This means that you will need to start an empty console project for the program to work correctly. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
I write more quotes than a fucking big book of quotes. - Scroobius Pip
|
|
|
|
|
Lycander
Lead Dog


Joined: 24 May 2002 Age: 27 Posts: 12389
Location: The Constitution State
|
Posted:
Tue Aug 12, 2003 7:54 pm Post subject: |
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 5438
Location: /var/log/cabin
|
Posted:
Tue Aug 12, 2003 7:59 pm Post subject: |
|
Lycander wrote:Technically, it's a script to instruct the compiler how to assemble machine instructions 
I disagree, I would say that the pre-processor directives instruct the compiler how to assemble machine instruction, the code itself is just an abstraction of which machine instructions to assemble.
A sort of neumonic for your neumonics, if you will.
|
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
I write more quotes than a fucking big book of quotes. - Scroobius Pip
Last edited by CMTG on Tue Aug 12, 2003 7:59 pm; edited 1 time in total
|
|
|
|
|
i3lackmagik132
Cat Chaser


Joined: 17 Jul 2003 Posts: 516
Location: Turn right on Discimination Str.
|
Posted:
Tue Aug 12, 2003 7:59 pm Post subject: |
|
Ty, but I actually used a c++ source file |
_________________ Waiting for the chance to bite dyucheron
|
|
|
|
|
CMTG
Leg Humper


Joined: 23 Feb 2002 Posts: 5438
Location: /var/log/cabin
|
Posted:
Tue Aug 12, 2003 8:07 pm Post subject: |
|
i3lackmagik132 wrote:Ty, but I actually used a c++ source file
A source file on it's own is not a project in VC++, I think you'll find that the first time you compile it, it'll ask you if you want to create a workspace for it. It'll create a default console project for you. |
_________________ Pie. I wish I could
constrain my hungry greed but...
Sadly, defeated.
Charlene's Law: There's no such thing as can't.
Charlene's Corollary: Unless it's followed by be arsed.
I write more quotes than a fucking big book of quotes. - Scroobius Pip
|
|
|
|
|
Jaymac
Moderator


Joined: 19 Dec 2002 Age: 23 Posts: 5739
Location: Port na Binne Uaine, Contae Dhoire, Éire
|
Posted:
Sat Aug 16, 2003 1:30 am Post subject: |
|
it should be a Win32 Console Application
and as CMTG said, a new project, with only that 1 source file in it |
_________________ Jaymac
"Software is like sex: it's better when it's free." - Linus Torvalds
"Ireland for the Irish, not for London or for Rome." - John Lennon
affabletoaster, Akely, AlexN, AnalogKid, anothersomeone, b-day girl, BamZipPow, blahpony, CheeseMonger The Great, dstg_II, Dutch, EdisonRex, eep, Elk, evilness, FatherBean, Fathertyme, Fido, horselady, je, jodygirl, KingKobra, krbshappy71, Lycander, mally, Murphy The Cat, nattiebo, OhioArt2, Olive, Pakiii, pastense, Quetzalcoatl, quijbe, Rahhstah, Rover, seca111, Skookum, sLaPpY, sully_51, Superdwarf, Tard, the taz man, Toast, Toxin, VirtualElvis, yiayia49
|
|
|
|
|
|
|
|
|
View next topic
View previous topic
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB
© 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours
Help us keep advertisements off this site. Donate today!
|
|