[問題] sort int and char*

作者: rarr (始終不渝)   2015-04-29 14:00:24
[code]
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define N 7
int main()
{
int i=0,j=0,k=0;
int b[7]={7,6,5,4,3,2,1};
char a[N][7]={"g","f","e","d","c","b","a"};
int temp_b=0;
char *temp_a=NULL;
printf("before sorted\n");
printf("a[] b[]\n");
printf("
作者: jaid (jaid)   2015-04-29 14:07:00
sorting演算法是錯的 沒那麼單純
作者: MOONRAKER (㊣牛鶴鰻毛人)   2015-04-29 14:20:00
Because it's not sort

Links booklink

Contact Us: admin [ a t ] ucptt.com