im an undergradute student. I hardly got thru my first year module in programming.. I find it very hard to get the logic behind in programming.. is there anything(books,cds,magz) that can help me out.. i really want to learn this well ?? plz plz can anyone help me out.. it will be great if u can.. thanks
What is the best way to learn C++??
I've often thought learning C++ first is probably pretty hard. There are really 3 things you are trying to learn at one time:
1) How computers do things (generic programming concepts)
2) The syntax of your particular language (C++ in this case)
3) Object oriented programming
Worse still if you are trying to program Windows apps or X apps because then you are trying to learn that too. Focus on simple programs first.
It is really important to focus on #1 above all other things. Once you "get" how to program a computer, the rest is details. So one idea would be to focus on C first (millions of tutorials and books on C on the Web). Once you think you have it, you can then move on to the object oriented principles in C++.
Or if you are impatient, try http://www.cprogramming.com/tutorial.htm...
or
http://www.mindview.net/Books/TICPP/Thin... (online book -- excellent)
which may or may not be clearer than what you've already attempted.
In any event, be sure to learn and understand about control structures and data structures. For object oriented, you should be able to fully explain in your own words inheritence, and polymorphism. If you have that down, you are 99% ahead of the game.
Good luck! Don't give up -- at some point it will "click" and then you'll have it.
Reply:Bruce Eckel writes excellent books on C++ try 'Thinking in C++'. You may want to try the 'for dummies' book first depending on your level of knowledge
Reply:when you program you must know about the algorithm and the syntax...
the algorithm is the logic of your program, usually build from the elements of loop (for, while), conditional (if, case), statement (=, !=). the algorithm is independent doesn't care about the language and usually described in pseudocode.
the syntax is the languange that you use...in this case is C++. so to programming in c++, you must know to
1. initiate the variable
2. make the logic (using loop, conditional, statement)
3. using the header library (include%26lt;iostream%26gt;)
my advice is trying with the simple example of program
like how to use (cout, cin, for, while, case) with variable (int, char) and understanding the bracket ({ } scope)
in the first you not need to notice about pointer, array, new and delete identifier or other complex knowledge...strengthening the basic and improve
lot of knowledge in programming.....
flowers gifts
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment