/*此程序用来说明strrev函数的应用*/
#include <stdio.h>
#include <string.h>
int main ()
{
char array[7];
puts("input a number:");
gets(array);
printf("the number has %d bits\n",strlen(array));
puts(array);
strrev(array);
puts(array);
getch();
return 0;
}
#include <stdio.h>
#include <string.h>
int main ()
{
char array[7];
puts("input a number:");
gets(array);
printf("the number has %d bits\n",strlen(array));
puts(array);
strrev(array);
puts(array);
getch();
return 0;
}
对不礼貌的女生收钱......