Sign in to follow this  
Smultron

New programmer need help

Recommended Posts

Smultron    100
Hey guys i just got into your forum, so far its good i don't know if its active though that many forums about development isn't. Well lets get to the point..

I think i will try learn develop games with C++ cus i heard most of the greatest or biggest games are made with that. Now i wonder where to start where do i find the basics of the language and when i learned the basic what game should i start making. And how do i learn how to make it cus i don't think i will learn too much by just Copy and paste from blogs and forums i find.. Please help me and get me more involved into this.

Share this post


Link to post
Share on other sites
Waaayoff    952
First learn a language then worry about making games. Learning C++ as your first language is going to be tough and not many people recommend it. But you can find all the resources you need by typing "C++ tutorials" on Google :)

Share this post


Link to post
Share on other sites
Smultron    100
I am not exactly new to whole programming i have been working alot with Visual basic and just little with Python but with C++ i just finished the ''Hello world'' project once.. But is there just a large description like a whole page with all the commands to program with and a small discription what it is used for?

Share this post


Link to post
Share on other sites
Waaayoff    952
Well, i just assumed you're new when i read the title which says.. new programmer..

Anyway, for a list of commands Google gave me this : Clicky

I don't think it'd do you much good though, c++ is a complicated language and i really think you should get a book or at least follow a decent online tutorial

Share this post


Link to post
Share on other sites
Smultron    100
I've got time to learn the language don't worry if i'd do good or not just whant to start learn it its never too late. And thanks for the help i will try find a youtube tutorial or something

Share this post


Link to post
Share on other sites
toogreat4u    127
I would say start with a couple of books/tutorials, as far as books are concerned I was unlucky person who started his programming with C++ and even though the learning curve is rough for a first programming language its nice to learn C++ because every language after that feels like its a million times easier than C++. The book that I started with (first class in Computer Science course) was this:

http://www.amazon.com/Problem-Solving-Object-Programming-Fifth/dp/0321268652/ref=sr_1_1?s=books&ie=UTF8&qid=1287347130&sr=1-1

This book was a great learning experience and I read it front to back and did all the programming projects from each chapter and I have to say all of that was very helpful. It doesn't go through any thorough pointer programming but the basics are covered very well.

Good Luck!

Share this post


Link to post
Share on other sites
JonathanCCC    163
learning C++ before C is going to be very difficult and frustrating.

and the tutorials can get confusing.

I would recommend you learn C - there is a great online tutorial that I did and recommend:

http://computer.howstuffworks.com/c.htm

once your comfortable with programming you can try games with C using something like allegro, or you can learn C++ straight after

or even learn C# after, but I personally think learning and starting with C is simple and valuable.

Share this post


Link to post
Share on other sites
DimitriA    100
I recommend these 2 books

Accelerated C++, Practical Programming By Example, Andrew Koenig/Barabara E. Moo

and

Beggining C++ through Game Programming, Second Edition, Michael Dawson


Go through Book #1 first then #2 (#2 I found simpler but also a different way of thinking), you should have a good understanding of the Standard Library by the end of it, then afterwards for Game Programming/DirectX I recommend going to the site - http://www.directxtutorial.com/ ; you might want to use the DirectX9 tutorials.

Or if you want OpenGL, go for http://nehe.gamedev.net :) (Might be a bit outdated though but a good point still)

anyhow cheers and good luck

Share this post


Link to post
Share on other sites
Smultron    100
Could some one explain what makes C easier to learn than C++ and you said i can learn C then straight go to C++ do you mean its the same language?

And those books i have to buy right? What store or web page?

Share this post


Link to post
Share on other sites
JonathanCCC    163
well think of it this way, C came first, then later came C++, bareing it's name.

C++ can be thought of as an extension of C, it added on to the language, and gave birth to object oriented programming (OOP).

the result is a big language which you can easily lose yourself in if you are learning to program in C.

All the concepts you learn in C are applicable in C++, where a few new concepts are introduced. But to understand the potential benefits C++ gives, you need to know C.

you can write anything in C that you can in C++.

you can of course if you wish learn C++ straight away without C, however i'm certain you will be overwhelmed quickly. But if you can do it, good for you.

whereas if you know C, you won't get overwhelmed and will understand the benefits C++ gives, although they may be unnecessary and you may wish to stick with plain C.

I also have a personal bias toward C for newcomers because of the documentation, I find the C tutorials best, whereas the C++ tutorials mostly assume C knowledge.

the link I posted above on C I can't recommend enough and will make you a C programmer. There are of course plenty of other tutorials on the web. You don't need to go out and buy books for either language, but you can if you wish.

EDIT: to answer your question, C++ is a different language than C, but it is a modified C. and although newer, C++ is not "better" than C, it depends on what you prefer personally and if you like using OOP more.

Share this post


Link to post
Share on other sites
Smultron    100
Aight man! I am downloading C# 2010 version and C++ 2010 version.

I will do as you guys say cus i all the time thought it was a diferent language for C and C++ you made me pretty much understand thanks!

Share this post


Link to post
Share on other sites
nobodynews    3126
Quote:
Original post by Smultron
Aight man! I am downloading C# 2010 version and C++ 2010 version.

I will do as you guys say cus i all the time thought it was a diferent language for C and C++ you made me pretty much understand thanks!
I've said this before and I'll say it again: While a C++ compiler can compile most C code a C++ program will look almost completely different from a C program. It's more like the difference between modern English and Shakespearean English. I mean just look at these 'hello world's:
C:
#include <stdio.h>

int main()
{
printf("Hello World");
return 0;
}
C++
#include <iostream>

int main()
{
std::cout << "Hello World";
return 0;
}
That's one of the simplest programs you can write and it just gets more and more different the more complex of a program you write. Because of these differences people sometimes talk about "C with Classes" for programs that were clearly written by C programmers who add a little C++ here and there like it were a garnish instead of treating C++ as the main course it can be.

Share this post


Link to post
Share on other sites
tufflax    504
Don't learn C++. Don't learn C# either, although it is a better choice than C++. Learn Python, it's simpler, and it's got an interactive interpreter that gives you instant feedback. Maybe you know this since you've tried some. It's also more fun, you can be more productive, etc. Don't think you have to pick what everyone else uses. Weren't you told "Don't listen to everything you hear" when you were a child?

Share this post


Link to post
Share on other sites
Monkan    1087
I started learning c++ from start and I found it quite hard but it takes me a while to learn things in general.

Really programming is about concepts and problem solving, it does not really matter what language you start off with,

The easiest thing I've worked with though is c# and XNA because XNA gives you loads of help and it is really well supported with tutorials and things.

Good luck!

Share this post


Link to post
Share on other sites
krash    136
Hello everyone, im new on here as well.. Im doing Computer Engineering, entered my second year, and im quite familiar with the very basics of both C and C++. Im able to understand and handle concepts like classes and inheritance, overloading operators etc. pretty well now.

My question is, what now? Now that I know the very basics, where should i be moving to? Should I try and make games already? If yes, where is the best place that will help me start off exploiting my knowledge in the field of game programming?

Any help in this regard is very much appreciated :)

Share this post


Link to post
Share on other sites
mrwonko    126
Quote:
Original post by krash
Hello everyone, im new on here as well.. Im doing Computer Engineering, entered my second year, and im quite familiar with the very basics of both C and C++. Im able to understand and handle concepts like classes and inheritance, overloading operators etc. pretty well now.

My question is, what now? Now that I know the very basics, where should i be moving to? Should I try and make games already? If yes, where is the best place that will help me start off exploiting my knowledge in the field of game programming?

Any help in this regard is very much appreciated :)

I'd say go and make games.

I think you shouldn't worry about learning about initializing windows, doing input or OpenGL/DirectX for now. I recommend instead using SFML which abstracts all that away and has some nice tutorials for getting started. With it you don't need to worry about how to set up a window etc., you just say: "I want a window of size X, Y" and you get one. (You can always learn those things later, if you feel like you need to.)

You can then start writing little games, for example Pong. You said you know about classes. Think about the objects you have in Pong. Think about their interaction etc. This shouldn't be too hard for Pong and you should be able to do it. Feel free to ask for help if you need any, though.

And once you've got Pong, you can start with something bigger. Not much bigger, be reasonable.


Oh, and I think maybe you should've created a new thread for this.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this