简单问题,相当白送structtestarray[100]想用malloc申请同上的数组怎么写[解决办法]struct test *array
简单问题,相当白送
struct test array[100];
想用malloc申请同上的数组怎么写
[解决办法]
struct test *array = (struct test *)malloc(sizeof(struct test)*100);
简单问题,相当白送
struct test array[100];
想用malloc申请同上的数组怎么写
[解决办法]
struct test *array = (struct test *)malloc(sizeof(struct test)*100);