摘要: 本题锻炼字符串的处理 scanf("%s",s) or strstr or strlen 很好的利用,其他没什么好讲的,注意长度刚好80在上一行输出,附代码。View Code 1 #include <stdio.h> 2 #include <string.h> 3 4 char s[100]; 5 6 7 int main(void) 8 { 9 int t,len=0;10 while(scanf("%s",s)!=EOF)11 {12 if(strstr(s,"<br>"))13 {14 pr 阅读全文
posted @ 2012-08-16 10:38 Wheat″ 阅读(124) 评论(0) 推荐(0)