gary wrote:
Hi,
Who can say something about the class of string? Why sizeof(string) = 4?
Thanks.
Probably because your specific implementation of that class uses a
single pointer to the memory of the string. Which in this case is 4
bytes (32 bits). All this depends on implementation tho.
If you want to know the number of characters in your string, you ought
to use the size() member.
--
Regards,
Ferdi Smit (M.Sc.)
Email:
Fe********@cwi.nl
Room: C0.07 Phone: 4229
INS3 Visualization and 3D Interfaces
CWI Amsterdam, The Netherlands