I'm overwhelmed by the C++

Page 2 - Seeking answers? Join the AnandTech community: where nearly half-a-million members share solutions and discuss the latest tech.

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
Well...dunno about you guys, but I'm finishing a degree in computer engineering right now - my college taught C++ from the start, and I didn;t find it too hard, I picked it up pretty fast (I'd only done VB before) to the point where my prof yelled at me for working ahead and daring to ask a question in class...heh. I think part of the reason I found it easy, is that it was at a slower pace than trying to do a book in a month...

Regarding C#, I just started coding it, been using C++ for 2.5 years or so, and I went through it easily, found it to be....well...easy. It is a MUCH cleaner language than C++, and I've come to love C#.

For DirectX and stuff, I've recently gone that direction, I tried using XNA with C#, found a lack of code for it, then tried buying a book, found the book went and got itself lost in the math of doing an engine, then spit out 5 pages of nonfunctional code, didn't explain it, and did more math...I recently bought one of Frank Luna's books, as they are supposed to be good. Check out the gamedev forums & site for more info on game programming.

For pointers and memory and all, my prof for a data structures class used the book "Data Structures using C++" by D.S.Malik. I have no clue how good it is, I never opened the book...but just looking at the book now, it seems good, explaining its code and concepts. Chapters include:
OOD and C++
Pointers and Array-Based Lists
Standard Template Library
Linked Lists
Recursion
Stacks
Queues
Search Algorithms
Sorting Algorithms
Binary Trees
Graphs
STL II


Appendices:
Reserved Words
Operator precedence
character sets
operator overloading
header files
addition topics
c++ for java programmers


Looking over this, I see my class was really structured around the book - the class was very good, so in the end I recommend this book for those who want to learn C++.

Hope this helps.
 

titan7

Junior Member
Jan 30, 2007
22
0
0
Originally posted by: Cooler
Best Thing about C++ is that you can type cast everything. You want The Bits of float into an int. With pointers its a done deal. You want to start reading random memory in the heap, pointers can do that. You are using a massive amout of memory and you dont want to wait for a GC to clean up. Using pointers and user defined memory mangment you can. Pointers Have a large learning curve but i have learned to love them. Btw You cant do this in java void swap(int a, intb) but you can in C++.

Yes, but it's also the worst thing about C++. Multiple inheritance is another one of those good and bad things.

Moving forward just use Java/C# and 64bit for everything and forget about memory problems
 

Barnaby W. Füi

Elite Member
Aug 14, 2001
12,343
0
0
I say learn whatever you want in whatever order you want. It's probably one of the less important factors in determining whether or not you will be a good/successful programmer.

As for C++, I like how the creator himself describes it:

"In C++ it's harder to shoot yourself in the foot [than C], but when you do, you blow off your whole leg." ? Bjarne Stroustrup.
 

RampantAndroid

Diamond Member
Jun 27, 2004
6,591
3
81
I'd say find the middle ground between C++ (which is basically C, with object oriented stuff bolted on) and Java - something like Ruby or C# - both can be used to create applications, and can be used for web applications as well (ASP.net and Ruby on Rails)

Whenever anyone asks what language to start with, I'll say C++, because that's what I did first, and I'm able to switch to other languages very easily...I find VB an annoyance anymore, but I do like C# and Ruby, I've done a little python, I use PHP all the time....

I think using C++ first is a good way to get an understanding of programming overall, as it has all the features and DOES let you shoot yourself in the foot - I think you have to do that a few times to get a better understanding of programming and the workings of a computer's memory system. I don't think Java is good to start with, as I see it as something of an extremist reaction to C++'s flaws - instead of using safe pointers (like C# did later) and so on, it just removed the features which could cause problems....
 

Cooler

Diamond Member
Mar 31, 2005
3,835
0
0
Originally posted by: titan7
Originally posted by: Cooler
Best Thing about C++ is that you can type cast everything. You want The Bits of float into an int. With pointers its a done deal. You want to start reading random memory in the heap, pointers can do that. You are using a massive amout of memory and you dont want to wait for a GC to clean up. Using pointers and user defined memory mangment you can. Pointers Have a large learning curve but i have learned to love them. Btw You cant do this in java void swap(int a, intb) but you can in C++.

Yes, but it's also the worst thing about C++. Multiple inheritance is another one of those good and bad things.

Moving forward just use Java/C# and 64bit for everything and forget about memory problems

No the worst thing is GOTO there is no reason for it in C++.
 

hasu

Senior member
Apr 5, 2001
993
10
81
There is another best kept secret in programming for Rapid Application Development, which is Delphi. Nothing specifically related to C++, but if you want to experience the real meaning of Rapid Application Development try Borland's Delphi (Borland's development tools division changed their name to DevCo). Now that they have free Turbo Versions of Delphi, C++ etc it is worth giving it a try. Turbo versions have limitations compared to Turbo Professional and other commercial versions (in comparison to the differences of Visual Studio and its express editions), but it is still good enough to start the acquaintance. I came from DOS and mainframe C/C++ to VC++ and then moved to Delphi. And I was totally surprised by the easiness of Delphi to develop Windows applications -- for both Database related and otherwise. You have to try it to believe it. C# and Delphi both are brain children of Anders Hejlsberg.

Delphi

Edit: Spelling correction
 

Gannon

Senior member
Jul 29, 2004
527
0
0
Originally posted by: Chris
C++ is a bastard language. Not recommended to learn programming on as others have stated. Java or C# is a good start.

C++ is not a hard language if you have a guide book, I totally recommend C++ Primer plus by Stephen prata, you can learn C++ by yourself and on your own starting with that book. If you can find it as a .PDF on P2P networks all the better.
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |