Is there any way to tell if a string is empty... such as:
char name[10];
if (name=="EMPTY??")
{
do this
}
Any help would be great!!
Is there any way to tell if a string is empty... such as:
char name[10];
if (name=="EMPTY??")
{
do this
}
Any help would be great!!
thanx
but i figured it out with strcmp
hahaha sometimes i feel so stupid LMAO!
How about using the string class?
Code:#include <string> using std::string; string name; if(name.empty()) { // do stuff }