I'm just curious for when I move from C# to C++ and what might help.
How did you learn C++?
I started a implement a FE-solver + UI in c++ as my first c++ project ( 2001 with MFC, not the best choise as a first project I have to say ).
So I had a target, motivation and a hard timeline. Then I looked into the concepts provided by c++ which seem to be the best approach and played around with it until it worked.
In my experience it is much easier to learn a new language with a real project than just reading a book. You can transfer the stuff you read into a real solution which solves a real problem. And you can lear how the toolchain works.
Hope that helps ...
Kim
C++ is not that hard in dos time. When I learn pascal and then move to C++, it's not that different. Because in Pascal u still can use OOP...
But things get so headache when windows release! To write a hello world app (with form) , it need 100-200 code line...No internet, only thick book, that really scare me. Sometime I just type 1-> 2 page of code then run to see what it really does.
Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen !
C++ is not that hard in dos time. When I learn pascal and then move to C++, it's not that different. Because in Pascal u still can use OOP...
But things get so headache when windows release! To write a hello world app (with form) , it need 100-200 code line...No internet, only thick book, that really scare me. Sometime I just type 1-> 2 page of code then run to see what it really does.
This is the difference between learning the language and learning to use an API. Win32 API is horrible, yes, but learning Win32 API is little to do with learning C++, since it is a C API.
Its better when learning the language to concentrate on a simpler API, such as the standard library methods for console input/output.
Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen !
This is not a good way to learn a language IMHO
I bought Sam's Teach Yourself C++ in 24 hours. Probably it wasnt the best book..... (It was the only available book in the shop).
With it and xoax.net (video tutorials), I was finaly able to compile and run my applications.
I used the lessons to learn how to program and then I would apply my new knowledge by building something small.
As I got more confident, I started making my own text based games. The book became a reference when I got stuck.
Like Kimmi said, its much better to learn something by appling the knowledge to a project.
Start small with console based applications to concentrate more on the standard library and the languange.
I haven't learend C++ yet, but I first read accelerated C++ about 10 years ago.. After that I've read lots of C++ and programming books, got a computer science degree and have been working with C++ for 4 years now.. I'm also reading lots of articles.. Thats the great thing about it, always something new to learn :)
this is equivalent to i've learnt how to read, highlight text, browse the net and use ctrl+c and ctrl+v very well!Now it's a lot more easy, we have tons of sample, tutorial on net, that no need to type anything at all, just build and see what happen !
it may not be hard but it can get confusing.C++ is not that hard . . .
At university I bought Visual C++ 1.0; must have been 1993. By that time, several printed manuals (10 or more) were included, one of them containing a very well written introduction to C++ (from C to C++).
I learned the language by reading tutorials, articles and editing examples from the internet. Also trying out some small things is a good idea from time to time. But I think the way of learning greatly depends on the person. But I think learning how to learn using the internet can be a very useful skill, even if it may take longer.