lapijn
asked on
how to do this like it should ??
Hello,
I'm starting to learn how to program in c++.
I use now
for (inti=0,i<20,i++){string[i ]=0x00;}
to "reset" a string to zero.
How is the correct way to do that ?
I'm starting to learn how to program in c++.
I use now
for (inti=0,i<20,i++){string[i
to "reset" a string to zero.
How is the correct way to do that ?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use a char array, instead of string.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks teuntje.
ASKER
OK, jaime_olivares. Thanks all.