![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Location: Ireland
Posts: 12
Rep Power: 0
![]() |
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. ![]() |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|