Hey guys:
I just had a simple question... How do you initialize strings in C++ to empty? I thought you could say string=""; and that would do it...but it obviously doesnt work. I would appreciate any help i could get.
Shishir
Hey guys:
I just had a simple question... How do you initialize strings in C++ to empty? I thought you could say string=""; and that would do it...but it obviously doesnt work. I would appreciate any help i could get.
Shishir
char string[10];
string[0] = '\0';
or
Code:string My_Name="\0";
"The most common form of insanity is a combination of disordered passions and disordered intellect with gradations and variations almost infinite."