马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
#include <stdio.h>
struct Arr
{
int * pBase; //存储的是有效数组的第一个元素的地址
int len; //数组所能容纳的最大元素的个数
int cnt; //当前数组有效元素的个数
};
void init_arr();
bool append_arr();
bool insert_arr();
bool delete_arr();
int get();
bool is_empty();
bool is_full();
void sort_arr();
void show_arr();
void inversion_arr();
int main (void)
{
return 0;
}
为什么编译就就出现错误了,完全看不懂啊,
--------------------Configuration: Arr - Win32 Debug--------------------
Compiling...
Arr.c
D:\Hei\自学编程程序\Arr.c(11) : error C2061: syntax error : identifier 'append_arr'
D:\Hei\自学编程程序\Arr.c(11) : error C2059: syntax error : ';'
D:\Hei\自学编程程序\Arr.c(11) : error C2059: syntax error : ')'
D:\Hei\自学编程程序\Arr.c(12) : error C2061: syntax error : identifier 'insert_arr'
D:\Hei\自学编程程序\Arr.c(12) : error C2059: syntax error : ';'
D:\Hei\自学编程程序\Arr.c(12) : error C2059: syntax error : ')'
D:\Hei\自学编程程序\Arr.c(13) : error C2061: syntax error : identifier 'delete_arr'
D:\Hei\自学编程程序\Arr.c(13) : error C2059: syntax error : ';'
D:\Hei\自学编程程序\Arr.c(13) : error C2059: syntax error : ')'
D:\Hei\自学编程程序\Arr.c(15) : error C2061: syntax error : identifier 'is_empty'
D:\Hei\自学编程程序\Arr.c(15) : error C2059: syntax error : ';'
D:\Hei\自学编程程序\Arr.c(15) : error C2059: syntax error : ')'
D:\Hei\自学编程程序\Arr.c(16) : error C2061: syntax error : identifier 'is_full'
D:\Hei\自学编程程序\Arr.c(16) : error C2059: syntax error : ';'
D:\Hei\自学编程程序\Arr.c(16) : error C2059: syntax error : ')'
Error executing cl.exe.
Arr.obj - 15 error(s), 0 warning(s)
|