Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Apr 6th, 2005, 7:53 AM   #1
Delete
Newbie
 
Join Date: Apr 2005
Location: Ireland
Posts: 12
Rep Power: 0 Delete is on a distinguished road
C++ Classes - Quick question(s)

At the moment i'm learning classes in C++, i think i pretty much have the basic principles and syntax down but i have a few things i need clarified.

1. I've looked at some examples where the definitions are made inline in the .hpp class decloration. Is it wise to do this or should you always keep them seperate or does it depend on the program/class size?

2. Classes are equivilant to Structures? I've been looking at some socket programmming and they seem to make use of structs quite alot, although most of the socket programming i have seen is in C. So if these programs were to be re-written in C++ would they make use of classes instead of structures?

Please remember i'm still relatively new to this so be gentle.
Delete is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:02 PM.

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