C/C++の宿題を片付け ..
35:デフォルトの名無しさん
07/08/28 20:47:08
>>33
#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++);
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
5330日前に更新/83 KB
担当:undef