FacebookTwitter
Hatrack River Forum   
my profile login | search | faq | forum home

  next oldest topic   next newest topic
» Hatrack River Forum » Active Forums » Books, Films, Food and Culture » C++ tutorials

   
Author Topic: C++ tutorials
Sid Meier
Member
Member # 6965

 - posted      Profile for Sid Meier   Email Sid Meier         Edit/Delete Post 
Anyone know and good sites about C++ esp about classes, and header files? I'm on my last assignment. Thanks.
Posts: 1567 | Registered: Oct 2004  |  IP: Logged | Report this post to a Moderator
Portabello
Member
Member # 7710

 - posted      Profile for Portabello   Email Portabello         Edit/Delete Post 
I know a good book -- the one by Deitel and Deitel.
Posts: 751 | Registered: Apr 2005  |  IP: Logged | Report this post to a Moderator
Tstorm
Member
Member # 1871

 - posted      Profile for Tstorm   Email Tstorm         Edit/Delete Post 
quote:
I know a good book -- the one by Deitel and Deitel.
Yup. I've got that one. [Smile]
Posts: 1813 | Registered: Apr 2001  |  IP: Logged | Report this post to a Moderator
Little_Doctor
Member
Member # 6635

 - posted      Profile for Little_Doctor   Email Little_Doctor         Edit/Delete Post 
C++ for dummies. It helped me in class a lot.
Posts: 1401 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
Sid Meier
Member
Member # 6965

 - posted      Profile for Sid Meier   Email Sid Meier         Edit/Delete Post 
I just dont mean a book, but some possible websites.
Posts: 1567 | Registered: Oct 2004  |  IP: Logged | Report this post to a Moderator
Sid Meier
Member
Member # 6965

 - posted      Profile for Sid Meier   Email Sid Meier         Edit/Delete Post 
but ya thanks for the advice on books though
Posts: 1567 | Registered: Oct 2004  |  IP: Logged | Report this post to a Moderator
TomDavidson
Member
Member # 124

 - posted      Profile for TomDavidson   Email TomDavidson         Edit/Delete Post 
"Anyone know and good sites about C++ esp about classes, and header files? I'm on my last assignment."

Um.
If this is your last assignment for C++, why are you only now getting an introduction to classes and header files?

Posts: 37449 | Registered: May 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
quote:
I know a good book -- the one by Deitel and Deitel
Thirded.

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Miro
Member
Member # 1178

 - posted      Profile for Miro   Email Miro         Edit/Delete Post 
I don't know if it will help you, but this was at the top of the list when I typed "C++" into google. It looks decent.
Posts: 2149 | Registered: Aug 2000  |  IP: Logged | Report this post to a Moderator
Eruve Nandiriel
Member
Member # 5677

 - posted      Profile for Eruve Nandiriel   Email Eruve Nandiriel         Edit/Delete Post 
quote:
Originally posted by Little_Doctor:
C++ for dummies. It helped me in class a lot.

I'm supposed to be using that book for my computer class. I haven't gotten very far yet, though. :-/
Posts: 4174 | Registered: Sep 2003  |  IP: Logged | Report this post to a Moderator
Alcon
Member
Member # 6645

 - posted      Profile for Alcon   Email Alcon         Edit/Delete Post 
http://www.cplusplus.com/doc/tutorial/

Probably the best one out there. On the web anyway.

Posts: 3295 | Registered: Jun 2004  |  IP: Logged | Report this post to a Moderator
ricree101
Member
Member # 7749

 - posted      Profile for ricree101   Email ricree101         Edit/Delete Post 
quote:

Um.
If this is your last assignment for C++, why are you only now getting an introduction to classes and header files?

I'm kinda wondering this too. What was the rest of the class about?
Posts: 2437 | Registered: Apr 2005  |  IP: Logged | Report this post to a Moderator
Sid Meier
Member
Member # 6965

 - posted      Profile for Sid Meier   Email Sid Meier         Edit/Delete Post 
umm... I understand everything ELSE but header and classes I haven't grasped yet, my project is to recreate the game of Othello.
Posts: 1567 | Registered: Oct 2004  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
Header file are much simpler than they're often made out to be. Really, just write your class defenitions in one file with a dot 'h' extention, then in your main file (.cpp) along with statments like #include <iostream> and #include <stdlib> just write #include "MyHeaderFile.h". Then you can use those class defenitions in your main file.

(This is not the only thing that can be done with headers but it's probably all you need to know)

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
Bokonon
Member
Member # 480

 - posted      Profile for Bokonon           Edit/Delete Post 
Do you understand what classes are, or do you just need to figure out how to use them? If the former, here's my best description of them:

Classes are blueprints of data structures that include sets of data (things like strings, integers, floats, even instances of other classes) and sets of instructions (functions). They allow you to abstract your program into self contained components that act or are acted upon, like objects in the real world (hence object-oriented programming being all the rage).

However, the class itself is like a Platonic Form; it is "perfectly" conceived, yet in reality is inert. What you do in your code is tell the computer to build an instance of the class (also called an object). This particular instance is the thing that is manipulated by the rest of your code.

-Bok

[ May 13, 2005, 09:33 AM: Message edited by: Bokonon ]

Posts: 7021 | Registered: Nov 1999  |  IP: Logged | Report this post to a Moderator
Hobbes
Member
Member # 433

 - posted      Profile for Hobbes   Email Hobbes         Edit/Delete Post 
Headers are pretty simply, but classes aren't, or at least aren't as simple to learn. If you need to figure out both, concentrate on classes, headers will be a breeze after that.

Hobbes [Smile]

Posts: 10602 | Registered: Oct 1999  |  IP: Logged | Report this post to a Moderator
   

   Close Topic   Feature Topic   Move Topic   Delete Topic next oldest topic   next newest topic
 - Printer-friendly view of this topic
Hop To:


Contact Us | Hatrack River Home Page

Copyright © 2008 Hatrack River Enterprises Inc. All rights reserved.
Reproduction in whole or in part without permission is prohibited.


Powered by Infopop Corporation
UBB.classic™ 6.7.2