I have a question about C++

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

Join Date: Jul 2009
Posts: 5
Reputation: Denxerator is an unknown quantity at this point 
Solved Threads: 0
Denxerator Denxerator is offline Offline
Newbie Poster

I have a question about C++

 
0
  #1
Jul 18th, 2009
Okay so, It's my first time on C++. They say you can use C++ to make games, so I want to learn about C++. (remember I'm a big newbie) So my question is, how does C++ work? Like if you put the C++ code in notepad, save it, open it, will it work? I bet it won't. Do you have to use a program or something? Like how does mozilla open in a new window... If you don't get what I'm saying, how do I make the code work?
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 19
Reputation: seakayaker is an unknown quantity at this point 
Solved Threads: 0
seakayaker seakayaker is offline Offline
Newbie Poster

Re: I have a question about C++

 
0
  #2
Jul 18th, 2009
Originally Posted by Denxerator View Post
Okay so, It's my first time on C++. They say you can use C++ to make games, so I want to learn about C++. (remember I'm a big newbie) So my question is, how does C++ work? Like if you put the C++ code in notepad, save it, open it, will it work? I bet it won't. Do you have to use a program or something? Like how does mozilla open in a new window... If you don't get what I'm saying, how do I make the code work?
Hi,
I don't know anything about making games, but in order to get C++ code to work you need a compiler. A great one, and FREE, is Microsoft Visual Studio Express. It lacks some features that come with the full versions, but I think it is a great start.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 89
Reputation: waldchr is an unknown quantity at this point 
Solved Threads: 6
waldchr's Avatar
waldchr waldchr is offline Offline
Junior Poster in Training

Re: I have a question about C++

 
0
  #3
Jul 18th, 2009
As a beginner, you should find some online tutorials on how to write C++. You also need a compiler, preferably with an IDE. I recommend Dev-C++ bloodshed for beginers, but you should definitely upgrade once you know how. The subject is simply to vast to be answered in one post.

Try this one. Otherwise just google it. I'm sure you'll come up with something.
Last edited by waldchr; Jul 18th, 2009 at 6:57 pm.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 255
Reputation: Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough Hiroshe is a jewel in the rough 
Solved Threads: 17
Hiroshe's Avatar
Hiroshe Hiroshe is offline Offline
Posting Whiz in Training

Re: I have a question about C++

 
0
  #4
Jul 18th, 2009
Here is a little more in-depth answer.
>So my question is, how does C++ work? Like if you put the C++ code in notepad, save it, open it, will it work? I bet it won't.
Well your right. Lets take it from the beginning. A program is a set of instructions the computer follows. Writting programs in these instructions is vary hard work for humans. So programming languages were developed. A programming language is a language that humans can understand, and can be converted into these instructions. They are converted using something called a compiler.
C++ is one of these programming languages. To make a program (on a basic level), you write your program and run it through the compiler to make your final program.
Remember when you start, your programs are going to be text based (i.e. no buttons, graphics or text boxes). So making something like a web browser will come latter on.
Remember if your going to learn how to program, USE GOOGLE when ever you run in to a problem. Good luck with your programming.

P.S: Yes you can use C++ to write games. If fact, isn't that the standard language to make games in? C++ alone can't make graphical games, but you can use a graphics api with C++ to do this. Don't worry about that for now if you are still learning C++.
Last edited by Hiroshe; Jul 18th, 2009 at 7:58 pm.
"Sometimes, when I lie in bed at night and look up at the stars, I think to myself, "Man! I really need to fix that roof."-Jack Handy
Reply With Quote Quick reply to this message  
Join Date: Jun 2007
Posts: 1,474
Reputation: evstevemd has a spectacular aura about evstevemd has a spectacular aura about evstevemd has a spectacular aura about 
Solved Threads: 128
evstevemd's Avatar
evstevemd evstevemd is offline Offline
Nearly a Posting Virtuoso

Re: I have a question about C++

 
1
  #5
Jul 18th, 2009
Originally Posted by waldchr View Post
As a beginner, you should find some online tutorials on how to write C++. You also need a compiler, preferably with an IDE. I recommend Dev-C++ bloodshed for beginers, but you should definitely upgrade once you know how. The subject is simply to vast to be answered in one post.

Try this one. Otherwise just google it. I'm sure you'll come up with something.
Isn't Dev-C++ dead? I suggest code::blocks
www.codeblocks.org
Also check:
http://www.cprogramming.com/
http://www.cpluplus.com/
Atheist: God is man made imagination, he doesn't exist!
Theist: It's okay, can you imagine anything else that doesn't exist?
---- Python, C++ PHP and Java ----
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 89
Reputation: waldchr is an unknown quantity at this point 
Solved Threads: 6
waldchr's Avatar
waldchr waldchr is offline Offline
Junior Poster in Training

Re: I have a question about C++

 
0
  #6
Jul 20th, 2009
I know that Dev-C++ is dead. I simply suggested it because it comes ready to go and isn't as complicated to set up as code::blocks (which i use myself).

Hiroshe- I was under the impression that Java was the main language for games.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 1,968
Reputation: tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute tux4life has a reputation beyond repute 
Solved Threads: 214
tux4life's Avatar
tux4life tux4life is online now Online
Posting Virtuoso

Re: I have a question about C++

 
0
  #7
Jul 20th, 2009
Originally Posted by waldchr View Post
I know that Dev-C++ is dead. I simply suggested it because it comes ready to go and isn't as complicated to set up as code::blocks (which i use myself).
I wouldn't recommend Dev-C++ anymore since it's dead.
BTW, Code::Blocks isn't complicated, it just offers lots of features, and is very extendable, but only because of the loads of features it comes with wouldn't make it less suitable for beginners.
They could for example just use the features they know, compiling is as easy as in Dec-C++, and as far as I'm concerned, newbies often just get an IDE to be able to easily compile their application.
So I don't see any reason on why not to recommend it to beginners.

Originally Posted by waldchr View Post
Hiroshe- I was under the impression that Java was the main language for games.
I remember that Hiroshe said something like that. Well, I'm not qualified to say this, but I can say what I think.
What I think is that C++ is THE language for game programming.
(it's most used in Game Development)
Java is another language used for Game Development, but I think Java is much more used for online games, for example MMORPGs.
I also think C++ is more suitable for Game programming because it hasn't got a garbage collector. (yes you read that correct).
Imagine that right in the middle of your Java game, Garbage Collection takes place, that would probably result in a game lag.
"Never argue with idiots, they just drag you down to their level and then beat you with experience."
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


Views: 318 | Replies: 6
Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC