这是为什么呢?不是数组对应数组,然后指针对应指针吗?求大佬解答
用 typedef 把数据结构先定义好,就可以避免这样的问题。
typedef struct _str_rec { int num; int ach; } STREC; void funtest(STREC a[], STREC* c); void testFun() { int score, i; STREC t[8], m;