|
|
#1 (permalink) |
|
Junior Member
|
I am doing computer science this year and have learnt a fair bit of java and i really find it interesting. So now i am interested in getting into a bit of C++ and was wondering what programs i need etc and a good website to self teach myself.
Any help would be appreciated. |
|
|
|
|
|
|
|
#2 (permalink) |
|
GotGames Admin
Join Date: Sep 2007
Location: Sydney, Australia
Posts: 3,429
gXboxLive Leaderboard: 102nd
Rep Power: 5
|
Probably be best to pm Jayso he knows it all.
GL! |
|
|
|
|
|
#5 (permalink) | |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
Quote:
Any good C++ tutorial or book will start with all of the C basics anyway. The "Advanced" parts of C++ tutorials.. are mostly just C++ specific stuff (class design, inheritance, polymorphism, templates, etc). Depending on tastes.. there are few ways you can go. IDE: Visual Studio - http://www.microsoft.com/express/vc/ - I would invest in the full version if you end up getting seriously into Microsoft stuff.. The downside to Visual Studio is there is alot of ****ing around to make sure that your applications don't require all of the stupid Microsoft dependencies/runtimes. Of course its possible to make it so they don't.. its just a hassle. CodeBlocks - Home - I use this for most of my C++ stuff. I mostly use Visual Studio for C#.. The plus side to CodeBlocks is there is no ****ing around with settings. You can load it up.. select a template (windows or otherwise), and it will run straight off Win32 libraries (unless you link them in yourself). Theres also some nice packages for cross-platform libraries/widgets for codeblocks too. One of the download packages ships with MingW I think.. If you're proficient in Java.. then you should understand almost everything in C++. I don't personally know Java.. but from what I've seen the only difference is that there is a colon instead of "inherits" ![]() chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|
|
|
|
#6 (permalink) |
|
Contributing Member
Join Date: Jun 2006
Location: Melbourne, Australia
Age: 22
Posts: 527
Rep Power: 3
|
I disagree, most C++ tutorials / books assume you come from a C background, + the features I mentioned are do not have any java equivalents AFAIK however they are important features to C and C++ and normally pose problems to those learning C.
__________________
Semi-Pro |
|
|
|
|
|
#7 (permalink) |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
I have about 5 C++ books and none assume you come from a C background. In fact, at least one of them assumes you've just learnt how to turn a computer on.
About 2 assume you're new to programming, but good with computers.. And the other two are class design / good language practises. chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - Last edited by chemicalNova; 10-07-2008 at 05:14 PM.. |
|
|
|
|
|
#9 (permalink) |
|
Monster Member
Join Date: Nov 2006
Location: Merrylands 2160
Age: 21
Posts: 3,687
Rep Power: 6
|
Codeblocks imo. Its a great package and no where near as heavy as Visual Studio. I used a text book which i got for $10. I already knew coding and the book focused on C++ and object oriented program
|
|
|
|
|
|
#10 (permalink) | |
|
Contributing Member
Join Date: Jun 2006
Posts: 607
Rep Power: 3
|
Quote:
YES, you do need basics from C, you need to know about Pointers (although dont forget about references), about memory allocation, about compilers and debuggers but if you program C++ as a C programmer you are bound to fail (perhaps I am being a bit strong :P) If you got great big balls, Stroustrup's "The C++ Programming Language" is the way to go. Perhaps hit up the basics of C, do some pointer exercises and read some input exercises. And if you are at usyd and thinking about C++, please take one of Matty Farrow's courses (I hope it is still offered).
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. |
|
|
|
|
|
|
#13 (permalink) |
|
Honorary Member
Join Date: Jun 2006
Location: |====|¯¯¯¯¯¯¯/ Penis Size : 10 "s ¯¯¯¯¯¯
Posts: 1,372
Rep Power: 4
|
Pdfs for me. Yeah, ebooks the legal or the not so legal way... pretty good for ruby so far.
Should be same for c++ course.
__________________
»-(¯`v´¯)-»"I'm so gay I sweat glitter!"»-(¯`v´¯)-» .ǝɹʇɐǝɥʇ ǝıʌoɯ ʇǝ1oɹʌǝɥɔ ɐ ǝʌıɹp ı ɹoʇɐbı11ɐ ǝ1ıpoɔoɹɔ ɹoıɹǝʇuı |
|
|
|
|
|
#15 (permalink) |
|
Contributing Member
Join Date: Jun 2006
Posts: 607
Rep Power: 3
|
Pragmatic programmers have a nice intro to ruby on an ebook.
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. |
|
|
|
|
|
#16 (permalink) |
|
Junior Member
|
@afrikakorps: no idea why you would start off with C...
But as for IDEs I would go for Code::Blocks using the MinGW compiler, a good site for reference is cplusplus.com - The C++ Resources Network, and make sure to keep your code up to standard etc. You may want a book to start off with, best bet is to go to the store and just look around at the begginer ones, see what suits your reading style. I personally learnt off Sams teach yourself C++ in 24 hours - No it will not take 24 hours! I also own Bjarnes Stroutsrups (sp?) C++ Programming Language 3rd edition, great for reference on everything. |
|
|
|
|
|
#17 (permalink) |
|
Pro Member
Join Date: Jun 2006
Age: 19
Posts: 5,593
Rep Power: 8
|
I know the guy who wrote that..
![]() ..but they are horrible. I remember reading one revision of that and I'm pretty sure it was all MFC based.. chem
__________________
There are no stupid questions... but there are alot of inquisitive idiots. - |
|
|
|
|
|
#18 (permalink) |
|
Junior Member
|
I didn't find it that bad, all code is cross platform teaches pretty good coding practice, the only thing I hate about most begginer books, is the lack of explanation of why you would use things. They'll teach you about arrays and how to use them, but not when and why you would use them. Same with pointers, which is pretty dificult to understand once you start off.
|
|
|
|
|
|
#19 (permalink) |
|
Contributing Member
Join Date: Jun 2006
Posts: 607
Rep Power: 3
|
Well how and when to use data structures is not really in the area of teaching a language. It is principals (data structures and such) which really is a separate area.
I mean if you were to get into the whole argument of when to use which data structure where, it really is quite a big one.
__________________
92% of teens have moved on to rap. If you are part of the 8% who still listen to real music, copy and paste this into your signature. |
|
|
|
|
|
#20 (permalink) | |
|
Green Member
Join Date: Aug 2008
Posts: 43
Rep Power: 0
|
Quote:
|
|
|
|
|





