So this is the client.cpp file. So what\'s the problem? I declare this string \'G\', I enter the nickname and then here \' cout << G << \":\" << sbuff
If that's all the same file, then you're declaring G twice, when you only should do it once.
// string G; cout << "Nickname: " << endl; cin >> G;