Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
提供一个字符串过滤函数,用这个处理字符串就过了^_^char str[251]; char buf[251]; void filter() { int i=0, j=0; for(; buf[i]!=newl; i++) { if( isalpha(buf[i]) ) { str[j++]=tolower(buf[i]); } else if( isdigit(buf[i]) ) { str[j++]=buf[i]; } } str[j]=newl; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator