int[]动态存入char**(char[][])

char ** intToString (int *a,int lenth){

  char ** s = (char **)malloc(lenth*sizeof(int));

  for(i<lenth...){

    s[i] = (char*)malloc(sizeof(char)*10);//假设每个数不超过10位

    sprintf(s[i],"%d",a[i]);

  }

  return s;

}

posted @ 2014-04-10 15:10  Blue-Dream  阅读(242)  评论(0编辑  收藏  举报