Home  >  Q&A  >  body text

c++ - The source code I saw on the Internet, such as str == "#Connected#", many are surrounded by ##. What does it mean? Please give me some advice.

bool Chat::detectingInstruct(string str)
{

if(str == "#Connected#")
{
    if(isServer && RecSocket != NULL)
    {
        if(AllName.size() == 0)
        {
            RecSocket->SendData("#NoID#");
        }
        string newName = SetName();
        NameInRoom.push_back(newName);
        ShowName();
        Room->Send("#ClearNameInRoom##end#");
        for(vector<string>::iterator itr = NameInRoom.begin();
            itr != NameInRoom.end();itr++)
            Room->Send("#ShowName#" + *itr + "#end#");
        RecSocket->SendData("#GetName#" + newName + "#end#");
    }
    return true;
}
世界只因有你世界只因有你2733 days ago677

reply all(1)I'll reply

  • 迷茫

    迷茫2017-05-19 10:49:46

    This. . . First let me confirm if this is C++/CLI mode?

    reply
    0
  • Cancelreply