in reply to Re: Cout & parsing
in thread Cout & parsing
^P (for example) is not the character ^ followed by the character P. It's the single character Ctrl-P (chr 16). The OP just posted the output of a program that represent chr 16 as ^P. When the strings were stored, they were prefixed by their length. 16 is the length of bishop@yahho.com.
The length might not always be a byte. In some libraries (such as C++ STL, I think), the size of the field varies to accomodate strings longer than 255 characters.
Also, email addresses are not as simple as you assume. They may contain multiple "@", for starters.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Cout & parsing
by fishbot_v2 (Chaplain) on Dec 06, 2005 at 00:25 UTC | |
by ikegami (Patriarch) on Dec 06, 2005 at 00:58 UTC |