is this a good step to learn programming?
i need to learn c++ in order to start making programs/game but i have no background knowledge of prgramming except html and limited actionscript.
is it a good idea to learn an easy language like python first? and then move on to java and then c++? or should i get straight in c++
- Lukas WolfeLv 41 decade agoFavorite Answer
Yes, I think it would be smart to learn a language such as Python first. This will give you a good understanding about programming and will make learning C++ syntax much easier.
C++ is an incredibly complicated and powerful programming language. Rather than jumping in at the deep end, try your hand with more basic languages first. Just my suggestion anyway.
------------- edit --------------
I have to say, in response to everyone, that programming is like a muscle. The more you use it the better you get. If you start with a language like C++ you are using a large flabby muscle that it is impossible to do anything with until you have worked and worked it. However, if you transfer those programming skills (as I did) to Perl or
Python or another language (except Java/VB), suddenly the world seems a better place because they are smaller muscles (Note: I do not mean less powerful or important), and therefore easier and quicker to work up get strong.
I would never advocate learning C++ for use in any other environment other than high powered applications. For the Web, Python is an excellent language, as is Perl (please no hate mail!), because speed is not so much of an issue, but the powerful constructs are still there.
For other development, I would probably advocate the use of these other languages purely for speed.
Personally, just learn python and stick with it. You will learn the transferrable skills (ie data structures, objects) for something like C++ as you go along (although they may not seem to some to be as powerful or well implemented as C++) and then something like python becomes invaluable.
Currently I know C++, Perl, Python (less than Perl, but I like it), ASP, Cold Fusion. I started on C++, hacked it for a year, and then started web programming with Perl. I found I could write what it took me a year to learn and write with C++ in about two weeks with Perl, including learning it. I am now learning Python because of the simpler syntax than Perl, and the way the language is implemented. I wish I had started with Perl or Python, just because they're quicker to learn and develop with.
I hope this is helpful.
- RonJonLv 41 decade ago
It would NOT be a good idea to learn python first. Python is a very easy language to write, but you need to learn the data structures of c++ to understand what python is even doing. Python was built using c++, and moving from c++ to python is simple, but not really the other way around.
One reason to do this is that you will learn variable manipulation, unlike your html experience which doesn't use variables, since it is just a markup language. This is advantageous with c++ because you will learn what a "strong typed" language is. This is a language where you have to tell the computer what "kind" of variable you want. Do you want a number? Do you want words? It will make you tell it, which Python doesn't because it assumes that you already know these programming ideas.
It will be slower starting out, i'm not going to lie. But, you won't as easily program with bad practices at the beginning as you would with a language like python. Once you learn these practices, You'll be able to move to just about any other language. You will for sure want to learn python the, because python is probably my favorite language.
I would also suggest getting a book. Here is an amazon search for c++ books, and depending on your budget, you could choose one
I hope this helps.
Lukas - I'll guess we'll just have to disagree then, because I have been coded in a large number of languages, and c++ has been a great language to transfer my knowledge from. He's talking about "starting" with python. He doesn't want to finish there. What happens when he goes to c# for web development? or when he wants to use ada, c or vhdl for low level applications? A python base will just not be sufficient to learn these languages quickly and efficiently.
You give the example of a muscle. I think of programming as building a house. Python and Perl would be the easy fun things you get to do on the house like installing windows or painting. You need to build the foundation first to which it will all stand on. Python is definitely NOT a foundation.
- MarkGLv 71 decade ago
Like others have said before you can run you must learn to walk and before you walk you must learn to crawl..
You sound like you want to program an XBOX or PSP game. Well I don't want to crush your dreams but put that idea out of your head for a while and concentrate on learning the basics of programming by making a few simple windows applications. You can make a few simple games like Tic-Tac-Toe or a Wheel of Fortune (Hangman) game. Such simple games will help you build the skills you will use in a more sophisticated app, yet simple enough that you can complete one in a reasonable amount of time.
With that said Microsoft has spen lots of $$$ on tutorials. I've included some links. I suggest that you try looking throught these on-line books
If you don't mind spending 10-15 bucks for a book I would recommend either of these.
These are thin books and take you step by step teaching you some basics and making a small simple application.
As for which language to start with I recommend absolute beginners start with Visual BASIC. Starting with VB doesn't mean that you'll use VB forever. But VB is easy to learn and is a very forgiving language for a beginner. String manipulation in VB is easier than C which treats strings as arrays.
So learn some concepts like, arrays and data types, the different kinds of looping and conditional branching by starting with VB. When you understand these concepts go ahead and jump into C/C++. The concepts will be the same just a different way of writting the commands in C compared to VB.Source(s): http://www.amazon.com/Visual-Basic-Game-Programmin... Visual BASIC http://www.microsoft.com/express/vb/ Learning Center http://msdn.microsoft.com/en-us/beginner/default.a... Teir 1 Windows Dev http://msdn.microsoft.com/en-us/beginner/bb308891.... C++ Game Development http://www.microsoft.com/express/gamedevelopment/
- tbshmkrLv 71 decade ago
Free Electronic Books
Thinking in C++ 2nd Edition by Bruce Eckel
Volume 1 & Volume 2
Code::Blocks == Open Source C/C++ IDE
- How do you think about the answers? You can sign in to vote the answer.
- DragonsOfWineLv 71 decade ago
Ignore the C comment, C++ is a superset of C++ and you really don't gain anything by starting with C.
I don't know Python myself but would suggest starting with C++ anyway. If you are finding it too difficult you can always go and try Python first.
Unfortunately HTML won't give you much of a background. Scripting may depending if there is any control logic.
C++ can be a little more difficult because there is not a lot to guide the developer in the language itself. Also pointers can be confusing for some, as can the object oriented abilities of C++. Note: you don't need to use the OO features to program in C++ (in which case you are actually programming in C :).
Get a good development tool like MS Visual Studio C++ express http://www.microsoft.com/express/vc/. I've been using VS for over 20 years and would highly recommend it. Yes there are other tools but not as good, and do not have as good support as VS.
- DBLv 41 decade ago
C++ to me is a very easy language to learn, i got the hang of it in a about a couple days and i really dont spend a whole lot of time around a computer. I say start with C++
- 1 decade ago
i suggest you to first learn C.
because most of language are based on c & then its easy to learn them. (like Java , php &...)
C or C++ or C# no matter start with one of them ;)