I recently purchased the book "C++ a beginners guide second edition by herbert schildt"
And the first example program is having some difficulties compiling under dev-c++ 4.9.9.2
You've made a couple of bad choices there, I'm afraid. Herb Schildt has a terrible, terrible reputation. In my opinion, for good reason. However, you've bought it now.
Dev-C++ has a terrible, terrible reputation. Fortunately, that is easily fixed by dumping it and using something better at no cost. Please see here: http://www.cplusplus.com/forum/articles/36896/
As the post above said terrible terrible teacher that man is , so if i could suggest a book that i used i would go with :
Beginning Programming with C++ For Dummies
I wouldn't recommend C++ for Dummies. That book is as the title states, to a certain extent intended for dummies. There's a trade off there. You'll probably be able to understand everything in it... but that's because it's lacking a lot of content. Those books might be good for starting but you won't reach the level of expertise (at least as much as you can attain from a book) that any C++ programmer desires with a For Dummies book. Personally I recommend Ivor Hortons Beginning Visual C++ 2008 or 2010. The book is a little expensive, but at around 1500 pages you'll get far more out of it than you will with a For Dummies book.
I would agree with you and not agree with you the dummies book is for beginners , and ofcourse you will need to read a follow up book , but it has alot of information in it on console applications and it well explained thats why its a dummies book , also thanks for the book recomendation im goin to buy it soon :D
Hey, i was told as you were ascii that the for dummies series of books was lacking in a lot of necessary content on this subject so i took a reccomendation on this book instead and so far it doesnt seem so bad, what is it about it that makes it a bad book? Or is it just a reputation thing?
Also i have visual studio but it seems to be a little bulky for what i want because it seems to be for large projects as opposed to one 17 year old making small .cpp files in an attempt to learn something, is there a lightweight IDE thats free? (I thought Dev C++ was it, but apparently not due to the rather large list of errors and the fact it hasnt been updated since 2006)
Visual Studio is an industry standard so it's good to know how to use it. However if you want something more "lightweight" than why not give CodeBlocks a try. There's nothing wrong with CodeBlocks, I just prefer Visual Studio for all of the extra functionality and the ability to use the MFC, make Windows Forms etc. When you start making GUI's and the likes Visual Studio really shines.
As for C++ For Dummies, there's nothing wrong with the book, but I still think that people who really want to become good at C++ are better off with a larger book that contains more content and introduces you to a library for making whatever kinds of applications you want. This is why I like Beginning Visual C++ 2008 or 2010 by Ivor Horton. The first 700 or 800 pages introduce you to both Standard ANSI C++ as well as C++/CLI, which is awesome. It then teaches you about the MFC so that you can begin to create Windows applications.
If you're just starting out, I heartily recommend spending at least a short time armed with nothing more than a simple text editor and a command line compiler and linker. You'll learn what actually happens when you write/compile/link, and even if you move on to an IDE and never again hand-craft your compiler/linker commands, that knowledge will be invaluable.
As a trivial example, the number of people with a decade's experience who are stumped by the meaning of the ubiquitous "undefined reference" linker error is very saddening; if they knew what the linker actually did, they'd solve it themselves in a second.
On the subject of books, there are some truly fat books around. The original K&R C book is a work of beautiful brevity and I'd love to see more programming instructional books following that example. Sadly, I understand that thin programming books simply don't sell when there is a book five (or even ten) times as thick on the shelf next to it.
C++/CLI, which is awesome.
Purely on opinion, I'd like to disagree with this; C++/CLI is hideous :p
Learning C++/CLI is like learning Spanglish. Sure, you can learn it, but how often are you going to need it? Plus, the people on both sides will point and laugh at you because you speak funny.