LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index » Code Warriors
Author Message
i3lackmagik132
Cat Chaser
Cat Chaser


Joined: 17 Jul 2003
Posts: 516
Location: Turn right on Discimination Str.

Post Posted: Tue Aug 12, 2003 6:51 pm   Post subject: Beginner C++ Question Reply with quote Back to top  

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?

Code: Select all
#include <iostream.h>

 int main()
 {
    cout << "Hello World!\n";
        return 0;
 }

_________________
Waiting for the chance to bite dyucheron
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 5438
Location: /var/log/cabin

Post Posted: Tue Aug 12, 2003 7:24 pm   Post subject: Re: Beginner C++ Question Reply with quote Back to top  

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?

Code: Select all
#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
View user's profile Send private message Send e-mail Visit poster's website
Lycander
Lead Dog
Lead Dog


Joined: 24 May 2002
Age: 27
Posts: 12389
Location: The Constitution State

Post Posted: Tue Aug 12, 2003 7:54 pm   Post subject: Reply with quote Back to top  

Technically, it's a script to instruct the compiler how to assemble machine instructions Smile

_________________
Bright, Vibrant, Blue - Lycander's webcomic

Don't fwoosh me bro.
View user's profile Send private message
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 5438
Location: /var/log/cabin

Post Posted: Tue Aug 12, 2003 7:59 pm   Post subject: Reply with quote Back to top  

Lycander wrote:
Technically, it's a script to instruct the compiler how to assemble machine instructions Smile


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.

Very Happy

_________________
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
View user's profile Send private message Send e-mail Visit poster's website
i3lackmagik132
Cat Chaser
Cat Chaser


Joined: 17 Jul 2003
Posts: 516
Location: Turn right on Discimination Str.

Post Posted: Tue Aug 12, 2003 7:59 pm   Post subject: Reply with quote Back to top  

Ty, but I actually used a c++ source file

_________________
Waiting for the chance to bite dyucheron
View user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
CMTG
Leg Humper
Leg Humper


Joined: 23 Feb 2002
Posts: 5438
Location: /var/log/cabin

Post Posted: Tue Aug 12, 2003 8:07 pm   Post subject: Reply with quote Back to top  

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
View user's profile Send private message Send e-mail Visit poster's website
Jaymac
Moderator
Moderator


Joined: 19 Dec 2002
Age: 23
Posts: 5739
Location: Port na Binne Uaine, Contae Dhoire, Éire

Post Posted: Sat Aug 16, 2003 1:30 am   Post subject: Reply with quote Back to top  

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 user's profile Send private message Send e-mail Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic     Reply to topic

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!