标签:print 输出 字符串 strcpy ring str int bsp inter
char hh[512]={0};
strcpy(hh,"PrinterSerialNumber:G11404;PrinterStatus");
string str;
str=hh;
str=str.replace(str.find("PrinterSerialNumber:"),strlen("PrinterSerialNumber:"),"");
str=str.replace(str.find("PrinterSerialNumber:"),strlen(";PrinterStatus"),"");
输出结果为:G11404
标签:print 输出 字符串 strcpy ring str int bsp inter
原文地址:https://www.cnblogs.com/Pond-ZZC/p/9525971.html