标签:int compare 字符串比较 bsp ack class 字符 ring str
1 char msg1[256]; 2 UF_OBJ_ask_name(BodyTag, msg1); 3 string s; 4 s = msg1; 5 6 string A; 7 string B; 8 //string字符串全部改成小写 9 transform(s.begin(), s.end(), back_inserter(A), ::toupper); 10 transform(AllBodyName[i].begin(), AllBodyName[i].end(), back_inserter(B), ::toupper); 11 12 //string字符串比较 13 int QQ = A.compare(B); 14 if (QQ == 0) 15 { 16 uc1601(" ", 1); 17 }
标签:int compare 字符串比较 bsp ack class 字符 ring str
原文地址:https://www.cnblogs.com/nxopen2018/p/10981790.html