View Single Post
Old Feb 4th, 2007, 5:04 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
size () is for the size of the string, in characters. It has nothing to do with the size of the class, per se, which has a number of controlling entities. A study (or design) of containers would probably clear up some unwarranted misconceptions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote