Jump to content

  • Log In with Google      Sign In   
  • Create Account

Where do I start learning c++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
13 replies to this topic

#1 CptMinecraft   Members   -  Reputation: 107

Like
0Likes
Like

Posted 18 July 2012 - 04:57 PM

Hello I'm Cpt and I making a 2d 8 bit sandbox RPG game like Terraria. But the problem is I don't know where to learn c++ and what program to use for Mac to use to make the game. If you want any info I am running a MacBook and I have experience with photoshop and I would like to know if a can get a PDF of how to make a game using c++. And last if I make a game on Mac would it work on Windows when finished

See ya

-CaptainMinecraft

Oh and if you want info on the world of the game is going to be randomly generated with my custom terrain and you can break and place blocks

Sponsor:

#2 Dwarf King   Crossbones+   -  Reputation: 1853

Like
3Likes
Like

Posted 18 July 2012 - 05:12 PM

Seek no more: http://www.cplusplus.com/ Posted Image That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427

Edited by Dwarf King, 18 July 2012 - 05:15 PM.

"The only thing that interferes with my learning is my education"

Albert Einstein

"It is a miracle that curiosity survives formal education"

Albert Einstein

 


#3 dimitri.adamou   Members   -  Reputation: 329

Like
0Likes
Like

Posted 18 July 2012 - 05:28 PM

A resource I can not stress enough is

'Professional C++' (2nd Edition), by Marc Gregoire, Nicholas A. Solter and Scott J. Kleper, it will bring you up to speed with well... alot of stuff. And most important of all - It teaches you HOW to program! It reaches on alot of topics, and its easy to approach. And if you download the source code that goes with it (and make sure you really go through it while reading), you'll pick it up in no time.

And you'll need to experiment alot to... it takes alot of time. I'm making the same journey myself

#4 incertia   Crossbones+   -  Reputation: 779

Like
0Likes
Like

Posted 18 July 2012 - 05:51 PM

I mainly use cplusplus.com as a reference site. Personally, I would buy a book and study C++ from it. There are quite a few articles on the internets about how to get a rendering system going, and you can experiment with game logic yourself.
what

#5 Fredericvo   Members   -  Reputation: 383

Like
0Likes
Like

Posted 18 July 2012 - 06:02 PM

cplusplus.com is good but learncpp.com seems more complete. Study both methodically.

#6 CptMinecraft   Members   -  Reputation: 107

Like
0Likes
Like

Posted 18 July 2012 - 07:52 PM

In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?

#7 CptMinecraft   Members   -  Reputation: 107

Like
0Likes
Like

Posted 18 July 2012 - 07:56 PM

Seek no more: http://www.cplusplus.com/ Posted Image That link will teach you C++, but not how to make games(that will come later on). For making games you should head to the resources - books.

Here you go a link we go: http://www.gamedev.net/page/books/index.html/_/technical/game-programming-9/beginning-c-through-game-programming-r1427

In the tutorial on cplusplus.com they have the blue and light grey sIDE on the program what program on Mac do you use to code?


#8 Dragonsoulj   Crossbones+   -  Reputation: 2111

Like
0Likes
Like

Posted 18 July 2012 - 07:57 PM

You could use a text editor and compile with XCode. I'm not very familiar with IDEs on Mac

#9 dimitri.adamou   Members   -  Reputation: 329

Like
1Likes
Like

Posted 18 July 2012 - 08:21 PM

Or opt for Eclipse, it works in Mac

http://www.eclipse.org/downloads/

#10 DZee   Members   -  Reputation: 194

Like
0Likes
Like

Posted 18 July 2012 - 09:47 PM

Don't bother with an IDE for starters. Just use your favorite text editor and compile with a terminal. It will teach you some fundamental things about compilers and if you ever switch platform you will always have a fallback in case you have no IDE since most compiler options share a similar interface.

Otherwise there's QtCreator, Eclipse, Code::Blocks, search stackoverflow for that one.

As for learning I recommend C++ Primer 6th edition. It has questions and exercises at the end of each chapter. It also covers C++x0 features.

I "surf" the web, literally.


#11 Serapth   Crossbones+   -  Reputation: 5461

Like
0Likes
Like

Posted 19 July 2012 - 05:23 AM

Or opt for Eclipse, it works in Mac

http://www.eclipse.org/downloads/


Good God no!

Recommending Eclipse as a c++ IDE is like recommending dynamite as a laxative. Yes, it might get the job done, but it will kill you in the process.

If Mac is the requirement, check out either XCode, Code Blocks or Qt Creator. If you must use a poorly configured Java IDE with C++ support bolted on, use Netbeans.

#12 foxmyzt   Members   -  Reputation: 101

Like
0Likes
Like

Posted 24 July 2012 - 09:49 PM

I've really enjoyed bucky's tutorials on youtube (his youtube name is thenewboston): http://www.youtube.com/playlist?list=PLAE85DE8440AA6B83&feature=plcp
I use code::blocks.
I'm on tutorial 21 of c++, and I've gone through 40 of his java tutorials. It really helps being able to watch the tutorial, and he explains it very clearly for beginners. I'm taking c++ next semester and trying to get a head start on the class over the summer.
Code Newb

#13 Attemptedhippo   Members   -  Reputation: 101

Like
0Likes
Like

Posted 24 July 2012 - 10:53 PM

If i had to make a suggestion start with this for the 2d game aspect:
http://www.kathekont...uide/index.html (note: This tutorial set was written for win32 but it DOES work in Linux, not Mac thoughPosted Image)
Its an absolutely amazing in depth guide on how to build a 2d (overhead) game engine ONLY using c++ console. No need to worry about graphics yet, get the basics first.
A good C++ resource I would suggest is C++ Primer Plus by Stephen Prata its an amazing book for learning c++ with little programming knowledge.

Edit: Oh and I completely agree with DZee just write the source files in something like Notepad++ (google it) and then just compile using your terminal(or console i dont use mac) There is nothing more useful than seeing the raw compiler data when you have some kind of compile error.

Edited by Attemptedhippo, 24 July 2012 - 11:03 PM.


#14 SIC Games   Members   -  Reputation: 617

Like
0Likes
Like

Posted 24 July 2012 - 11:02 PM

I agree that cplusplus.com helped me alot. What may help you alot too is look at the site's examples and try to translate it into english inside your mind. I think this what helped me alot. I havent touched C since I was a kid. Just now, I'm relearning everything. You'll get it, just hang in there! It's just less complicated when one understands easily. Hell, riding a bike was rough, a couple of tries it's more easier riding a bike. Just had to through a analogy.

Game Engine's WIP Videos - http://www.youtube.com/sicgames88





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS