c语言中如何在一个字符串里搜索出其中的字母和数字啊?谢谢

日期:2016-09-21 15:49:50 人气:3

c语言中如何在一个字符串里搜索出其中的字母和数字啊?谢谢

那大概就是这样 #include "stdio.h" #include "string.h" #include "stdlib.h" int main(){ char str[1000]; //字符串 memset(str,1000,0); scanf("%s",str); char ch; int pos1(0),pos2(0); char s1[500],s
    A+
热门评论