C/C++の宿題を片付けます 95代目
■ このスレッドは過去ログ倉庫に格納されています
0035デフォルトの名無しさん
2007/08/28(火) 20:47:08#include<ctype.h>
int mystrlen(int*pstr){
char*pstr_=(char*)pstr;
int count = 0;
for(;*pstr_;++pstr_)
if(isspace(*pstr_)) ++count;
return count;
}
void mystrcpy(int*pstr,int*pans){
char*pstr_=(char*)pstr;
char*pans_=(char*)pans;
do if(!isdigit(*pans_))*pstr_++ = *pans_;
while(*pans++);
}
■ このスレッドは過去ログ倉庫に格納されています