String Abfrage
-
Hallo zusammen.
ich möchte in einer if_Klasuel abfragen, ob ein string leer ist.
aDatabase->Path(result[0].dieId) == NULL ???Dabei meckert der Compiler,
aDatabase->Path(result[0].dieId) sit wie gesagt ein const std::string.
Vielen Dank
Eva
-
Hallo
std::string test; ... if (test == "") // oder if (test.size() == 0)bis bald
akari
-
oder auch:
std::string test; ... if (test.empty())Tntnet