Introducing myself and a n00b help question. ;)

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2005
Posts: 2
Reputation: Labombadog is an unknown quantity at this point 
Solved Threads: 0
Labombadog's Avatar
Labombadog Labombadog is offline Offline
Newbie Poster

Introducing myself and a n00b help question. ;)

 
0
  #1
Jan 11th, 2005
Hi, I normally post at the IGN boards for games, but recently I semi-quited games(school reasons) and thought of getting serious with C++ because I want to become a game designer in the future. I know its going to take a lot of hard work and time but I know I can do it. My favorite games are Zelda: OOT, Chrono Trigger/Cross, Xenogears, al Final Fantasies, and Earthbound.

Nice to meet you guys. ...

Now here is my question.

Im doing the traditional first program, known as "Hello World"

I type this on the editor:

#include <iostream>
//tells me there is an error on this line, which is blank
int main()
{
std::cout << "Hello World!\n";
return 0;
}



I compile it and it says that there is an error. I am also trying to save the compiled code to an obj. file so I can link it but there isnt an option to save it as that. can you help me out? I am using a downloaded version of Dev-C++ btw and the book I am using is 'Sams Teach Yourself C++ 4th edition in 21 days'.
Reply With Quote Quick reply to this message  
Join Date: Aug 2004
Posts: 298
Reputation: Cain is an unknown quantity at this point 
Solved Threads: 2
Cain's Avatar
Cain Cain is offline Offline
Posting Whiz in Training

Re: Introducing myself and a n00b help question. ;)

 
0
  #2
Jan 11th, 2005
Welcome aboaord Labombadog.

I am no programmer, but there are many in the forums; masters and wannabees alike.
I would suggest digging through some code snippets on daniweb.. you can
search them in the "Search for:" box at the top of the page and pull down to
"code snippets" to the left of it. I usually have better luck in the forums. Tons of
examples out there.

Good luck on your hunt.
Last edited by Cain; Jan 11th, 2005 at 3:15 pm. Reason: killertypo
I used up all my money on you baby...
... and I want it BACK.
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,680
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 727
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Introducing myself and a n00b help question. ;)

 
0
  #3
Jan 12th, 2005
>My favorite games are Zelda: OOT, Chrono Trigger/Cross, Xenogears, al Final Fantasies, and Earthbound.
I like you already. Might I also suggest Xenosaga, Lunar, Lunar 2, Wild Arms, Tales of Destiny, and Tales of Symphonia?

>I compile it and it says that there is an error.
The code is fine, so it would help if you copy/pasted the error that you're getting. That way we can have a better idea of what's not right.

>I am also trying to save the compiled code to an obj. file so I can link
With an IDE, linking will happen automagically if you have a project set up. You typically only have to deal with object files when using a command line compiler and makefiles.

>but there isnt an option to save it as that.
The result of the compilation process is an object file, which is then processed by the linker to create an executable file. So there's no need to save anything as an object file because that's what your compiler gives you as a part of the normal process.
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 2
Reputation: Labombadog is an unknown quantity at this point 
Solved Threads: 0
Labombadog's Avatar
Labombadog Labombadog is offline Offline
Newbie Poster

Re: Introducing myself and a n00b help question. ;)

 
0
  #4
Jan 12th, 2005
^That was 'one' of my guesses.

Btw, Tales Of Symphonia rocks, I beat it not too long ago. :cheesy:

I cant use this comp for coding because my pop's is somewhat tripping.
But I am still going to study the book, no doubt about that. Me and my girl is suppose to move together soon(March or April) and she owns a laptop so w00t for me.

Narue and Cain, you guys are on my B/L.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 4
Reputation: prasath_amd is an unknown quantity at this point 
Solved Threads: 0
prasath_amd prasath_amd is offline Offline
Newbie Poster

Re: Introducing myself and a n00b help question. ;)

 
-2
  #5
Aug 17th, 2008
Originally Posted by Labombadog View Post
Hi, I normally post at the IGN boards for games, but recently I semi-quited games(school reasons) and thought of getting serious with C++ because I want to become a game designer in the future. I know its going to take a lot of hard work and time but I know I can do it. My favorite games are Zelda: OOT, Chrono Trigger/Cross, Xenogears, al Final Fantasies, and Earthbound.

Nice to meet you guys. ...

Now here is my question.

Im doing the traditional first program, known as "Hello World"

I type this on the editor:

#include <iostream>
//tells me there is an error on this line, which is blank
int main()
{
std::cout << "Hello World!\n";
return 0;
}



I compile it and it says that there is an error. I am also trying to save the compiled code to an obj. file so I can link it but there isnt an option to save it as that. can you help me out? I am using a downloaded version of Dev-C++ btw and the book I am using is 'Sams Teach Yourself C++ 4th edition in 21 days'.
Either the line has to be,

#include <iostream.h>

or

#include <iostream>
using namespace std;
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: mahlerfive is an unknown quantity at this point 
Solved Threads: 16
mahlerfive mahlerfive is offline Offline
Junior Poster in Training

Re: Introducing myself and a n00b help question. ;)

 
0
  #6
Aug 18th, 2008
Your code is fine, can you paste the compiler error?
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 3,819
Reputation: VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute VernonDozier has a reputation beyond repute 
Solved Threads: 501
Featured Poster
VernonDozier VernonDozier is offline Offline
Senior Poster

Re: Introducing myself and a n00b help question. ;)

 
0
  #7
Aug 18th, 2008
Originally Posted by mahlerfive View Post
Your code is fine, can you paste the compiler error?
This thread has been dead for years. I'm sure the OP has either solved it or not longer cares.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 77
Reputation: mahlerfive is an unknown quantity at this point 
Solved Threads: 16
mahlerfive mahlerfive is offline Offline
Junior Poster in Training

Re: Introducing myself and a n00b help question. ;)

 
0
  #8
Aug 18th, 2008
Oops, sorry, the post before me was 1 hour ago, didn't check the OP posting time
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC