Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   C++ (http://www.programmingforums.org/forum15.html)
-   -   c++ question (http://www.programmingforums.org/showthread.php?t=15847)

gt8ost4l May 19th, 2008 6:06 PM

c++ question
 
what book should i get on c++

Ancient Dragon May 19th, 2008 11:12 PM

Re: c++ question
 
Click Here :)

gt8ost4l May 19th, 2008 11:31 PM

Re: c++ question
 
do you know whats the difference between c and c++

Jabo May 20th, 2008 12:24 AM

Re: c++ question
 
C++ has been named C with classes. C++ being an object oriented programming language would be the main difference. That should give you a place to start.

Ancient Dragon May 20th, 2008 6:10 AM

Re: c++ question
 
Didn't you ever hear of google ? It took me all of about 10 seconds to find all those links that described the difference between the two languages.

BstrucT May 20th, 2008 6:14 AM

Re: c++ question
 
Whats the difference between C and C++?

" ++ "

haha, no just kidding, but it really seems like that is the only difference as C++ is a lot more Object Orientated.

Get yourself DEVCPP and a good book to get started.
Oh, and do all the examples, as that will help speed up the learning curve.

Good Luck

>BstrucT

gt8ost4l May 20th, 2008 6:37 PM

Re: c++ question
 
so you could start with c++ first

lectricpharaoh May 20th, 2008 9:19 PM

Re: c++ question
 
Quote:

Originally Posted by gt8ost4l
so you could start with c++ first

Yes. In fact, unless you have a reason for learning C over C++, I'd recommend it. C++ has many things that make programming easier, and help to avoid many common pitfalls of C programming. A couple of examples would be using a C++ vector rather than an array in C, and of course the string class is far easier to use than C-style strings (which are just char arrays) coupled with the C string manipulation functions.

JAlexBrown May 21st, 2008 2:19 PM

Re: c++ question
 
If you're going to start programming today, I'd suggest jumping ahead and starting with C++. Correct me if I'm wrong, but I believe C code is 100% foreward compatible, meaning that ANY code that would compile with a C compiler will also compile correctly with a C++ compiler.

As far as reading material goes, just google C++ Tutorials and give some different results a shot. I'm sure you can find plenty of resources that way that will help you.

Ancient Dragon May 21st, 2008 9:36 PM

Re: c++ question
 
Quote:

Originally Posted by JAlexBrown (Post 145435)
Correct me if I'm wrong, but I believe C code is 100% foreward compatible, meaning that ANY code that would compile with a C compiler will also compile correctly with a C++ compiler.
.

You are wrong. There are several C constructs that have to be changed in order to get a c++ compiler to successfully compile with 0 warning or errors. You obviously never read any of the google links I posted earlier.


All times are GMT -5. The time now is 4:17 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC