用C语言编程:一个含有若干个字符的字符串,分别找出其中数字,将重复的去掉后,按升序排列后输出。

日期:2014-05-18 12:53:57 人气:1

用C语言编程:一个含有若干个字符的字符串,分别找出其中数字,将重复的去掉后,按升序排列后输出。

#include #include #include #define maxn 811111 char s[maxn]; char *p; int cmp(const void* a, const void* b) { //C 语言比较函数,用于qsort return *(int *)a - *(int *)b; } void func(char *s, int length) { //处理你给出的字符串 ,length为长度
    A+
热门评论