Saturday, May 9, 2009

To learn C++ you must ... ?

To learn C++ you must ...





a) Attend a lecture on the subject.


b) Learn C first and then the ++ part


c) Buy a good book on C++ like: _____


d) Learn it from an online internet source, like _____


e) Forget Microsoft Visual C++ and get a UNIX emulator


f) forget C++ and learn the language _______


g) forget C++, It's way to difficuilt man!


h) other advice.

To learn C++ you must ... ?
The way I did it was to learn C first, then C++, but that was many many years ago. Now people are in love with crap languages like Java and C#. Any language that hides pointers from the developer is a toy/joke. I love the control that C and C++ give you, but I digress....


The way I learned was I got one of those Teach yourself C in 21 Days books. Went through that to get the basics, did the same for C++, and after I had the basics from both books, I picked up the rest of years of programming for projects or just for fun.


You can pick up just about everything from the internet now, so you don't need to buy a book, but I like having an easy reference.


Books I would recommend is


"The C Programming Language" by Kernighan and Ritchie


and


"The C++ Programming Language" by Bjarne Stroustrup





Side note: I suggest E as well. Forget Macro$loth and go to linux.
Reply:i) Copy from your neighbour's book!!!
Reply:The best thing to do is to just go out and buy the software package if you can afford it. The package should contain books that will teach you about the many functions that are essential to make a use full program that you might not get anywhere else.
Reply:b) Learn C first





b+) Learn about object oriented design (don't worry about C++ just yet)





b++) Then as you are picking up C++, think about the OOD stuff you've learn. If you think in terms of OOD, C++ becomes a lot clearer and you'll suddenly realize why that have so much junk in it.





c) Get "The C++ Programming Language" by Stoustrup





e) Hmm...if you are cool with b and c, VC++ ain't so bad. In fact, you'll also "get" what VC++ is trying to do if you think more in terms of OOD and code reuse.





h) Don't become overwhelmed by C++. Yeah its a lot but you probably won't use most of it but you want to be aware of it.





h+) Oh and get used to using the STL. Once you get used to using the STL, it'll make programming a whole lot easier for many of the mundane tasks.
Reply:C++ for dummies.
Reply:B and C if you want to educate yourself and have a solid structure from which to draw. I recommend the Sams books for a beginner.





D and A if you want to go it at school. I wouldn't bother with ITT or DeVry since you can't transfer the credits you get there to a normal university should you some time down the road rethink your education and want to get a Master's on top of your Bachelor's or Associates.





E since its only a matter of years before Microsoft goes under and I wouldn't bother with their stuff if you paid me a million bucks.
Reply:wat's ur question?


Should I learn C before I learn C++?

I'm currently learning C++ as a hobby, but would love to find a programming job one day. I often see programming jobs that require you to have a background in C/C++.





Should I learn C before I learn C++? How difficult would it be to learn C later on after having programmed in C++ for a while?

Should I learn C before I learn C++?
Most programs like to teach C before C++. However, there is no reason why you shouldn't start with C++. One of the things people who start with C have a problem with is switching their thinking to an object oriented approach. I think if you start with C++ you can avoid this problem and I think going from C++ to C would actually be easier than going from C to C++.





If you go this route, make sure that whatever method you decide to use to learn, whether it be book or a course you enroll in or whatever, doesn't expect you to know C first. If they are teaching from an approach where they are building on C you may find yourself becoming frustrated.





Also I dissagree with Keena: I think it would be more like learning to ride a bike before learning to build it.
Reply:c lacks inheritance,polymorphism,classes, objects ,ect which is present in c++.........





ur idea would be like tryin to drive a bike b4 learning cycle.....lol......


u can , but am afraid it would be hard....
Reply:You should learn C++ first.


You will learn object oriented programming and you will have the opportunity to learn better practices, such as RAII. Also, the standard library in C++ does a lot more than the C standard library. You don't have to learn as much raw material before you can write a useful program. Most importantly, the C++ library does a lot of memory management for you (via container classes). Memory management is the most difficult part of C. Delaying that will get you up and running much faster.





In addition, raw C is not used much now, especially on desktop environments. It is used in specialized environments such as kernel drivers and embedded systems but stuff like that would be well in the future.





Once you know one language well, it is relatively easy to learn another. Going from C++ to C, you might miss the stuff you had, but it's not hard. You'll have to learn manual memory management, but it's not too bad once you have background.





Some of the best C++ learning books are:


C++ Primer 3rd ed, Stanley Lippman


The Complete C++ Training Course, Deitel %26amp; Deitel


You Can Do It- A beginner's introduction to Computer Programming!, Francis Glassborow
Reply:Just learn C++ because C is becoming more and more obsolete. C++ is one of the most prominently used languages out there and the language of choice in video games. C++ is a souped-up version of C, so learning C is pointless.
Reply:Yes it's always better to learn C first and I will explain why.





C is a very general purpose programming language. It is used to solve a wide range of programming problems. C++ takes it to another level by making object oriented programming a LOT easier while using the standard library provided by C. C does have advantages too such as a wide array of superior compilers to choose from.





You will not find C difficult after learning C++ because I learnt C++ 4 years before I even touched a C book. Personally, dealing with pointers in C was a pain in the neck whether you do it first or not you will have to do it at some point.





It's best to know both languages but just remember that 90%+ of all the programs out there can be written in either language.
Reply:C++ is EXTREMELY hard to learn. That is the reason why microsoft has invented C#. If you want to do something beneficial for your career learn C# instead. Ruby is also getting into demand %26amp; very user friendly. Forget C %26amp; C++ it is the PAST. Those 2 languages are use mostly in the research field but will dissapear.
Reply:I would lean towards C++. If you learn C++, then you are learning C with more features. C++ is just an extension of C, and you will probably find more job opportunities with C++.


Personally, I learned C first and C++ was extremely simple to learn afterwards. It would probably be the same if I knew C++ then tried to learn C.
Reply:I would suggest do your c++ first, because its a bit easier than C, when it comes to syntex of the commands that you need to write.


Once the logic of the code is clear to you.


You would find C quite easy to follow ...





The logic for both the land is the same but C is a bit more powerful as it gives you a bit more freedom with the assembly lang and hardware( but again slighly tougher than C++)...





my suggestion.. complete C++ and then C would be a cake walk for you.
Reply:in my opinion, you should learn C before C++





why? because it is easier and not that much "cryptic"


to understand than C++.. ^^





learn as much as you can in C, and when the time


that you're feeling that something (eg functionality, or


you cant code it easier) is missing while using C,


then its "time" for you to start to learn C++.. ^_^v





if you learn first C before C++, it is like


relearning C with some added functions


and another way to code a C program..





but the other way isn't.. if you first learnt C++ then C,


you may expect some functions to exists also


in C, which is often not.. why? because C is impossible


to be "backward" compatible with C++..





i hope you got my point.. peace out.. ^_^v
Reply:Ideally, you should learn C before C++ but you should be learning both at the same time.


Just to get a comparison between doing input/output statements and features in each language.


Or you can learn C then C++ then C# to see the differences in each language and the advantages of using each language.


It shouldn't be difficult to learn C after learning C++ but just having to remember that you cannot use 'class' in C and reference declarations.


In memory management, C uses malloc/free, C++ uses new/delete.


You don't need to cast a void* to pointer* where pointer is any type in C where as C++ requires you to do it.


C++ flags error where they are warnings in C.


Learn C++ ???

Where can I learn C++ online? I have tried wikibooks but that has a lot of missing stuff.


Is there any comprehensive guides that are quite easy to follow?

Learn C++ ???
http://www.cplusplus.com/doc/tutorial/





This (IMO) is a fairly good website, if it seems incomplete or there seems to be something missing you can always post here to see if someone can fill you in on that.





Also, since I'm a big fan of wikipedia, I'd recommend the wikiversity tutorial on C++


http://en.wikiversity.org/wiki/C%2B%2B





If these aren't any good, I'll try to look for some other ones.





Has also on wikibooks, they have sections where people don't add information. Every now and again there is a to do box.