Skip to main content
gamedev.net
🔒 Locked

c++ programing ?

Started by rookie666 Nov 27, 2008 at 12:22 AM 27 replies 5.7k views
Original Post
rookie666
rookie666
hi all was wondering where to start i wanna learn c++ as first programing language a know some HTML and css but that not what im looking for atm id like to make really small basic games n programs id like to know where to start lets just say i know very little about c++ where i start to get too 2d stuff from not much programing understanding some one here know? been looking but all i find is tutorials who explain half the stuf ore realy harder stuf :(
oler1s
oler1s
Quote:
i wanna learn c++ as first programing language
It’s not recommended. It’s a much smarter idea to learn a higher lever language first, and C++ later on. Pick another language.

Quote:
where i start to get too 2d stuff
On a long path. 2D is relatively complex for a complete beginner.

Quote:
been looking but all i find is tutorials who explain half the stuf ore realy harder stuf
Because it’s impossible to find something that starts on an advanced topic and explains it in a concise way to a beginner. You need to work your way up.

Oh, and: clean up your English. Punctuate your sentences, capitalize properly, spell out words correctly. Don’t use text speak. Be coherent.
MrCpaw
MrCpaw
Quote:
Original post by rookie666
hi all was wondering where to start i wanna learn c++ as first programing language a know some HTML and css but that not what im looking for atm id like to make really small basic games n programs id like to know where to start lets just say i know very little about c++ where i start to get too 2d stuff from not much programing understanding some one here know? been looking but all i find is tutorials who explain half the stuf ore realy harder stuf :(


Hello, glad to see another person taking on C++!

Making a 2D game in C++ to start can be done with SDL. Which can be found here on the site I listed below.

http://www.libsdl.org/

For SDL Tutorials go here:

http://lazyfoo.net/SDL_tutorials/index.php

For learning C++ I suggest this website.

http://www.cplusplus.com/doc/tutorial/

For a C++ compiler you can either use Visual C++ Express or Dev C++

http://www.microsoft.com/express/download/

http://www.bloodshed.net/devcpp.html

Books I recommend are:

C++ Primer Plus 5th Edition
Accelerated C++ Practical Programming by Example

I hope this helps you!

Don't bother paying attention to people stating not to learn C++. Everyone learns at their own pace and learning C++ wont happen over night, but in a few years from now you will be glad you picked C++.

However if you're just looking for a hobby and not really wanting to spend a lot of time learning I suggest Python, C#, or JAVA.

Good Luck!
rookie666
rookie666
Quote:
Original post by MrCpaw
Quote:
Original post by rookie666
hi all was wondering where to start i wanna learn c++ as first programing language a know some HTML and css but that not what im looking for atm id like to make really small basic games n programs id like to know where to start lets just say i know very little about c++ where i start to get too 2d stuff from not much programing understanding some one here know? been looking but all i find is tutorials who explain half the stuf ore realy harder stuf :(


Hello, glad to see another person taking on C++!

Making a 2D game in C++ to start can be done with SDL. Which can be found here on the site I listed below.

http://www.libsdl.org/

For SDL Tutorials go here:

http://lazyfoo.net/SDL_tutorials/index.php

For learning C++ I suggest this website.

http://www.cplusplus.com/doc/tutorial/

For a C++ compiler you can either use Visual C++ Express or Dev C++

http://www.microsoft.com/express/download/

http://www.bloodshed.net/devcpp.html

Books I recommend are:

C++ Primer Plus 5th Edition
Accelerated C++ Practical Programming by Example

I hope this helps you!

Don't bother paying attention to people stating not to learn C++. Everyone learns at their own pace and learning C++ wont happen over night, but in a few years from now you will be glad you picked C++.

However if you're just looking for a hobby and not really wanting to spend a lot of time learning I suggest Python, C#, or JAVA.

Good Luck!


tanks
il take a look ty n i dont go school at the moment i don't work and don't sleep more then 4hours a day most the time. xD i run on tee -_- so i got a chitload of free time lmao


and oler1s sry this is as good as my English goes i suck in typing and in making understandable sentences whut language you say is best to start then? id love to hear it
Captain P
Captain P
Is there a reason you want to learn C++ as your first language? Because, while it's certainly possible, it's not the easiest language to start with and it's quite easy to learn things incorrectly. C++ has a lot of hidden pitfalls that you need to know about before you can use it effectively. It took me 3 years to find out that I lacked knowledge in some vital areas... 3 years that I could've spend more efficiently.

Yes, C++ is used a lot in the games industry, but that doesn't immediately mean it's a good language to start with. If you just want to create some games for now, you can start with something like Gamemaker, or, if you want something a little more programming-oriented, Flash. Or, for yet some more programming, Python + Pygame is a good choice.
rookie666
rookie666
Quote:
Original post by Captain P
Is there a reason you want to learn C++ as your first language? Because, while it's certainly possible, it's not the easiest language to start with and it's quite easy to learn things incorrectly. C++ has a lot of hidden pitfalls that you need to know about before you can use it effectively. It took me 3 years to find out that I lacked knowledge in some vital areas... 3 years that I could've spend more efficiently.

Yes, C++ is used a lot in the games industry, but that doesn't immediately mean it's a good language to start with. If you just want to create some games for now, you can start with something like Gamemaker, or, if you want something a little more programming-oriented, Flash. Or, for yet some more programming, Python + Pygame is a good choice.



im not at all looking for ease im looking for alot chanlenge I REAALY DONO ANYMORE whp i listen the dude saying make it harder the one saying good choise ore the one saying make it easy -_- im confused now ARG
Darrky
Darrky
Quote:
Original post by rookie666
Quote:
Original post by Captain P
Is there a reason you want to learn C++ as your first language? Because, while it's certainly possible, it's not the easiest language to start with and it's quite easy to learn things incorrectly. C++ has a lot of hidden pitfalls that you need to know about before you can use it effectively. It took me 3 years to find out that I lacked knowledge in some vital areas... 3 years that I could've spend more efficiently.

Yes, C++ is used a lot in the games industry, but that doesn't immediately mean it's a good language to start with. If you just want to create some games for now, you can start with something like Gamemaker, or, if you want something a little more programming-oriented, Flash. Or, for yet some more programming, Python + Pygame is a good choice.



im not at all looking for ease im looking for alot chanlenge I REAALY DONO ANYMORE whp i listen the dude saying make it harder the one saying good choise ore the one saying make it easy -_- im confused now ARG


I'm sorry, but unless you got a very specific reason to chose C++ then you shouldn't. It's quite a difficult laungage to comprehend even if you have all the dedication needed to go through with the tedious pitfalls. That said, there exists good learning resources for C++ and so it can be learned, but really - starting with something "easier" really isn't that bad of an idea.
And choosing C++ because you want a "challenge" is, mostly, indeed a valid argument. But, from your current programming knowledge, you'll most likely just suffer and in the end either a) quit programming b) stay as far away from C++ as you can (hence becoming a C++ hater).
Python and C# are my personal recommendations. All people have their preference.
You have to find yours.
JimmyDeemo
JimmyDeemo
First may i offer a bit of friendly advice. Spending a little bit of time on making sure your post has good spelling and decent grammer, will encourage a lot more people to reply to them.

One reason people are asking about C++ is that if you really want to get into game, in the sense that you want to start seeing things happening on screen and concentrate more on the game logic. Then C++ isn't the quickest way to do that. So what is it you really want to learn first. To learn how to program in general, or to get some games on the go.
ToohrVyk
ToohrVyk
Quote:
Original post by rookie666
and oler1s sry this is as good as my English goes i suck in typing and in making understandable sentences whut language you say is best to start then? id love to hear it
In that case, you might want to avoid programming altogether, especially in C++. The syntax of most programming languages is a great deal more complex than English syntax, and failure to respect any of its rules will result in compile-time or run-time failures. So, if you cannot start your sentences with a capital letter, write "I" instead of "i", or end your sentences with a valid punctuation mark, you will inevitably and invariably fail in all your programming attempts (unless you explicitly go for a visual programming language that doesn't require you to type).

Seriously, trying to program without the ability to type correctly is like trying to drive a car with no legs and a blind eye.
rookie666
rookie666
Quote:
Original post by ToohrVyk
Quote:
Original post by rookie666
and oler1s sry this is as good as my English goes i suck in typing and in making understandable sentences whut language you say is best to start then? id love to hear it
In that case, you might want to avoid programming altogether, especially in C++. The syntax of most programming languages is a great deal more complex than English syntax, and failure to respect any of its rules will result in compile-time or run-time failures. So, if you cannot start your sentences with a capital letter, write "I" instead of "i", or end your sentences with a valid punctuation mark, you will inevitably and invariably fail in all your programming attempts (unless you explicitly go for a visual programming language that doesn't require you to type).

Seriously, trying to program without the ability to type correctly is like trying to drive a car with no legs and a blind eye.


i feel so hated -_- the English you learn at french school sucks they don't chow shit all ! -_-
DevFred
DevFred
Quote:
Original post by ToohrVyk
The syntax of most programming languages is a great deal more complex than English syntax

Then why is it so easy to write a compiler for a programming language, but so hard to understand a sentence in a natural language? Is it just the semantics that are hard?
ToohrVyk
ToohrVyk
Quote:
Original post by DevFred
Quote:
Original post by ToohrVyk
The syntax of most programming languages is a great deal more complex than English syntax

Then why is it so easy to write a compiler for a programming language, but so hard to understand a sentence in a natural language? Is it just the semantics that are hard?
What does "understand" mean? Humans understand sentences because they have access to a large database of concepts, and they map each sentence to a set of concepts from that database. Computers usually don't have a complete database (if they have one at all) because building one is far more difficult than designing a programming language.
ToohrVyk
ToohrVyk
Quote:
Original post by rookie666
i feel so hated -_- the English you learn at french school sucks they don't chow shit all ! -_-
This is not really a matter of learning. It's a matter of discipline. For instance, you forgot to capitalize your "I" in the sentence above—that's all there is to learn: you must capitalize it, and you know that you must. Why do you forget? Think about ways of remembering it.

rookie666
rookie666
Quote:
Original post by ToohrVyk
Quote:
Original post by rookie666
i feel so hated -_- the English you learn at french school sucks they don't chow shit all ! -_-
This is not really a matter of learning. It's a matter of discipline. For instance, you forgot to capitalize your "I" in the sentence above—that's all there is to learn: you must capitalize it, and you know that you must. Why do you forget? Think about ways of remembering it.


What the fuck -_- OK i am going to just help myself and read beginning C++ Game Programming by Michael Dawson for the basics. Those who have tried help tanks a lot and to those who where evil tanks anyways ( drop dead ) -_- all believe what you want all it takes is will and a little logic to do pretty much anything in life... except for some really deficient people... but that's something different




<< how old are the pplz on here? curious <<


p.s sorry for any misspells -_-
OrangyTang
OrangyTang
Quote:
Original post by rookie666
i feel so hated -_- the English you learn at french school sucks they don't chow shit all ! -_-

If english isn't your native language then filling in the "from" field in your profile means people will generally cut you some slack.
_Austin
_Austin
Despite the lack of respect from the OP I would like to add that C++ Game Programming by Michael Dawson is an excellent book. You will learn the fundamentals of C++ from this book if you take the time to study it and spend time practicing the concepts you learn from each chapter before moving on to the next. I understand where you are coming from with wanting to learn C++ first, mostly for the challenge, but you need to learn that the people here that have told you other wise have a few things going against you.

The first being that they are more experienced than you with programming, another being that they see these kinds of posts hundreds of times a month so they see some of these posters come back later and say that C++ was to hard etc etc. Also, some of them probably started off being thick headed and not willing to try any other languages. From this they have learned from a possible mistake that you are about to make. Although, I would like to add that you may understand the programming concepts perfectly and excel at C++ and if you do more power to you!

What I'm getting at is if you're planning on sticking around I've learned, me being a long time lurker, that it's best clean up your posts with proper grammar, spelling, and sentence structure then just show some respect from the people that are so kind enough to take time out of their day to try and HELP you. That is the reason you came here, correct?

- Austin
iluvzhouying
iluvzhouying
I think starting with C++ isn't such a bad idea if you are a person who really likes a challenge. The most thing is you will stick with what you started with and never give in easily. Actually I'm just doing it right now -- yes, I'm learning C++ as well.

But there's still one thing that I agree with most of the people here: you need to spell out your English correctly. Figuring out your English for some non-native English speakers like me is even harder than reading a line of C++ code.

:)
RedDrake
RedDrake
Quote:
Original post by ToohrVyk
Quote:
Original post by rookie666
and oler1s sry this is as good as my English goes i suck in typing and in making understandable sentences whut language you say is best to start then? id love to hear it
In that case, you might want to avoid programming altogether, especially in C++. The syntax of most programming languages is a great deal more complex than English syntax, and failure to respect any of its rules will result in compile-time or run-time failures. So, if you cannot start your sentences with a capital letter, write "I" instead of "i", or end your sentences with a valid punctuation mark, you will inevitably and invariably fail in all your programming attempts (unless you explicitly go for a visual programming language that doesn't require you to type).

Ehm... If the complexity of the C++ syntax is indeed more complex than English then writing a NLP parser should be simpler than writing a C++ parser [grin].
ToohrVyk
ToohrVyk
Quote:
Original post by RedDrake
Ehm... If the complexity of the C++ syntax is indeed more complex than English then writing a NLP parser should be simpler than writing a C++ parser [grin].
The English equivalent of the C++ language syntax is mostly a question of "String words together separated by whitespace and punctuation marks. End sentences with punctuation. Capitalize the first letter of a sentence. Place appropriate amounts of spaces around punctuation." This is easier than the complex syntax of C++.

Of course, this allows you to write nonsensical sentences like "Thousand if achieve conceive sublimated." but following only basic C++ syntax rules you could also write nonsensical code such as "int foo() { return foo -> bar; }" which can be parsed but does not respect semantic rules.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.