PDA

View Full Version : From PHP to C++


Markpyro
04-19-2006, 6:06 PM
I guess I could call myself proficient at PHP, my knowledge of it serves my purposes and I don't have reason to go further than what I've learned. Now, I’m ready to meet some goals I made a while ago; to learn C++.

Basically, the question I need answered is (hopefully from the perspective of someone who started with PHP and moved onto bigger things):

-Are there any books or tutorials that I can find that aren't tedious and that don't explain the basics (ex. the purpose of functions, loops, conditionals, etc.), or come from the perspective of a PHP programmer?

~~MP

Mindslaver
04-20-2006, 7:07 PM
Except for pointers and a few other constructions, you will find that almost any intermediate C++ book will suit your needs. A knowledge of PHP will give you a head start in understand key concepts in C++, although the methods used to program in C++ are entirely different from those in PHP.

If you do not want to spend any money, take a look at Bruce Eckel's Thinking in C++ (http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html) online book.

Otherwise, there are plenty of books for you to use - go to a local library/bookstore and browse through the C++ section. From there, you can decide whic book suits your needs best.

Bruce Eckel's book starts assuming that you know C/Java, but a knowledge of PHP can adequately fill the gap. However, if you end up using the book, you will need to thoroughly understand pointers and C++ Object-Oriented Programming (OOP) before you attempt to move on past Chapter 3. Do all of the exercises - actually writing programs is the best thing to do.

I would recommend using Eckel's book. First: It's free. Second: He begins assuming that you already know programming. Third: He writes from the perspective of an OO programmer - too many books neglect the paradigms of programming, and worry about only syntax.

If you have questions, don't be afraid to ask here.