std::string (which you would need to use #include <string> to make use of std::string) would be the right type for your variable. Obviously, xyz is not a string [in any sense]. You probably wanted to...