- Joined
- Sep 30, 2006
- Messages
- 1
- Reaction score
- 0
Why /0 can't terminate string?
i know /0 can terminate the cstring, but how come it can't stop the string (class) in c++. I hear someone said because the c++string is a class and one of its member store the length of the array, so it won't scan its length when we run it again. we only change one of its variable.
is this true?? please show me a simple program to terminate the string(if possible).
Thx!
i know /0 can terminate the cstring, but how come it can't stop the string (class) in c++. I hear someone said because the c++string is a class and one of its member store the length of the array, so it won't scan its length when we run it again. we only change one of its variable.
is this true?? please show me a simple program to terminate the string(if possible).
Thx!