摘要:
Q:一个数字是以xxx,yyy,zzz的字符串形式存储的,将逗号消去并转化为整数输出 方法一:char数组,即定义时s1定义为 char s1[20]的形式; //删除输入字符串中的逗号,并构建新串 for(i=j=0;*(s1+i)!='\0';i++) if(s1[i]!=',') s1[j++ 阅读全文
posted @ 2020-03-25 20:45
ShineLe
阅读(19884)
评论(0)
推荐(1)
摘要:
class P{ public: int id; char name[10]; int age; P() { this->id = 0; for (int i = 0; i < 10; i++) this->name[i] = '\0'; this->age = 0; } void operator 阅读全文
posted @ 2020-03-25 16:51
ShineLe
阅读(321)
评论(0)
推荐(0)

浙公网安备 33010602011771号