贴个无聊的小模板
#include <stdio.h>#include <stdlib.h>
typedef struct{
int argsize;
void **arg;
}array;
int main()
{
array bc;
char b[]="hello,world";
printf("Hi,what size do you need:");
scanf("%d",&bc.argsize);
bc.arg=(void**)calloc(bc.argsize,sizeof(int));
*bc.arg=b;
printf("%s\n",*bc.arg);
}
[ 本帖最后由 朱大哥 于 2015-1-25 16:08 编辑 ]