♂季_末♀ 发表于 2013-11-28 18:45:52

菜鸟求助~~~~~~~~~~链表

#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;
}
编译出现问题,求指点。。。。。

♂季_末♀ 发表于 2013-11-28 18:46:26

--------------------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)

zch463170098 发表于 2013-11-30 14:57:34

D:\Hei\自学编程程序\Arr.c(16) : error C2059: syntax error : ')'

CL0419 发表于 2013-12-2 18:27:19

复制粘贴了你的代码,在VC6中编译没出现问题,不过我建的工程后缀名是.cpp的,不是后缀.c的。
页: [1]
查看完整版本: 菜鸟求助~~~~~~~~~~链表