Rory_M Posted August 13, 2011 Share Posted August 13, 2011 Hello everyone, i have just downloaded NetBeans and i'm looking to make a C++ Project, i would like something simple to start of with and then build up. My knowledge isn't to good i know a few simple things like sums, variables, input, output and if statements. I have a good felling i will pick it up quickly due to the fact it is similar to php. Anyone got any ideas for a C++ newbie like me? ;) Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 13, 2011 Share Posted August 13, 2011 I would suggest your first port of call is Bjarne Stroustrup as it [C++] is really nothing like PHP. I/O, polymorphism, pointers, true dereferencing, operator overloading, templates .. none of this exists in PHP in any way shape of form similar to C++. Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 Ok thanks, any ideas for a simple project? Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 13, 2011 Share Posted August 13, 2011 (edited) BS as I said. There are plenty of example projects. For example; section 3.5 exercises include the design and implementation of a calculator, starting from the basics of understanding parenthesization which also implies a knowledge of operator precedence, functions to convert a string to a number - something that is apparently sorely lacking in the PHP world (at least here anyway), parsing input into a series of tokens, to adding more complex functions including user-defined ones. All this is designed to improve your understanding and skill of the language itself, and in the real-world parsing input tokens is certainly a very common process. One of the later exercises require you to write something that strips out comments from a (C++) input file. That's the type of real world problem facing people today - consider for example a css compressor which takes all your lovingly crafted css, and compresses it down to a nice small single package. These are the types of tools you will actually benefit from even though their beginnings are in the back of a stuffy text book. Edited August 13, 2011 by Anonymous Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 Thanks. :) Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 Where do you find the tutorials and/or project ideas? Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 13, 2011 Share Posted August 13, 2011 Which part of "Bjarne Stroustrup" did you not understand? Quote Link to comment Share on other sites More sharing options...
Anonymous Posted August 13, 2011 Share Posted August 13, 2011 The book itself is known at least amongst my peers as just "Bjarne Stroustrup". Although it's proper title; that of course being the author, is "The C++ Programming Language". Get a copy. There is also an exercise book which has solutions to most, if not all, the examples contained therein. Both are worthy of taking up space on anybody's bookshelf. Quote Link to comment Share on other sites More sharing options...
Sim Posted August 13, 2011 Share Posted August 13, 2011 I won a Coder Of Month award in 2010 with this: http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=444&lngWId=3 Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 Well done Sim. :) Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 Can anyone recommend any C++ software that can compile and run, my current program Dev C++ will not compile? :( Quote Link to comment Share on other sites More sharing options...
Danny696 Posted August 13, 2011 Share Posted August 13, 2011 Microsoft visual suite will help you. Sure its from MS, but its good. Quote Link to comment Share on other sites More sharing options...
Sim Posted August 13, 2011 Share Posted August 13, 2011 Nothing wrong with Visual Studio 6 C++. Get that =] Thats what I use to use. Learn Windows API with C++, then directX and start your own 3d engine!!! blah that was tough, so I quit. Quote Link to comment Share on other sites More sharing options...
Rory_M Posted August 13, 2011 Author Share Posted August 13, 2011 I'll have a go, thanks guys. :) Quote Link to comment Share on other sites More sharing options...
bluegman991 Posted August 13, 2011 Share Posted August 13, 2011 Does netbeans compile C++? or do you use something else to compile it? Just curious. Want to start learning it, and need something to work with. Quote Link to comment Share on other sites More sharing options...
Sim Posted August 14, 2011 Share Posted August 14, 2011 THe thing with C++ compilers is all code from one compiler may not work with another compiler. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.