当前位置: 技术问答>linux和unix
简单的发帖问题.....
来源: 互联网 发布时间:2016-10-09
本文导语: 怎样才能把下面的code变得有色,排版好看.....新手.... ClientNode* Find_client(char cSrcterminalid[]) { printf("Find_client(char cSrcterminalid[]), lock..n"); pthread_mutex_lock(&mut); vector ::iterator it; ClientNode* othernode = NULL; int...
怎样才能把下面的code变得有色,排版好看.....新手....
ClientNode* Find_client(char cSrcterminalid[]) {
printf("Find_client(char cSrcterminalid[]), lock..n");
pthread_mutex_lock(&mut);
vector ::iterator it;
ClientNode* othernode = NULL;
int size = clientvector.size();
for ( it = clientvector.begin (); it!=clientvector.end();it++){
if (0 == strcmp((*it).cSrcterminalid, cSrcterminalid)){
othernode = it;
//cout
ClientNode* Find_client(char cSrcterminalid[]) {
printf("Find_client(char cSrcterminalid[]), lock..n");
pthread_mutex_lock(&mut);
vector ::iterator it;
ClientNode* othernode = NULL;
int size = clientvector.size();
for ( it = clientvector.begin (); it!=clientvector.end();it++){
if (0 == strcmp((*it).cSrcterminalid, cSrcterminalid)){
othernode = it;
//cout