从函数返回结构变量

时间:2018-08-20 17:13:13

标签: return structure

getting error : a.c:25:29: error: type of formal parameter 1 is incomplete case 1 : data = insert( data,dev); ^~~~ a.c:25:19: error: incompatible types when assigning to type ‘struct Var’ from type ‘int’ case 1 : data = insert( data,dev);

[对于函数插入错误:a.c:47:21:警告:在此定义或声明之外,在参数列表内声明的“ struct Var”将不可见   int insert(struct Var data,int sda []){                      ^ ~~ a.c:47:25:错误:参数1(“数据”)的类型不完整   int insert(struct Var data,int sda []){

] 2

0 个答案:

没有答案