简单类型 / 字符串

#include <iostream>
using namespace std;

//Empty strings
string someEmptyString = "";
string anotherEmptyString;

if (anotherEmptyString.empty()) {
    cout << "string is empty";
}