c++ - 在网上看到的源码 如str == "#Connected#",好多都是用##包围的是什么意思,求教

浏览:32日期:2023-03-18

问题描述

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;}

问题解答

回答1:

这。。。首先允许我确认一下这是不是C++/CLI模式?

相关文章: