在编写数据结构实现各种排序算法的过程中,在编译的时候显示我vc中的list.h有错误,双击那个错误的时候跳出来的页面也是
来源:学生作业帮 编辑:搜搜做题作业网作业帮 分类:综合作业 时间:2024/07/29 01:25:00
在编写数据结构实现各种排序算法的过程中,在编译的时候显示我vc中的list.h有错误,双击那个错误的时候跳出来的页面也是我vc中list.h文件部分的代码,如下:
#if !defined(_LIST_)
#define _LIST_
#pragma pack(1)
//
typedef struct _LIST
{
LPLINK Tail; //... List Tail pointer.
LPLINK Head; //... List Head pointer.
DWORD Length; //... List Length.
} LIST;
typedef LIST *LPLIST;
#ifndef NO_INLINE
#ifndef INLINE
#define INLINE __inline
#endif
显示的错误就是
“\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length'
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or type specifiers
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink'
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.”
是什么原因呢,求高手帮忙
#if !defined(_LIST_)
#define _LIST_
#pragma pack(1)
//
typedef struct _LIST
{
LPLINK Tail; //... List Tail pointer.
LPLINK Head; //... List Head pointer.
DWORD Length; //... List Length.
} LIST;
typedef LIST *LPLIST;
#ifndef NO_INLINE
#ifndef INLINE
#define INLINE __inline
#endif
显示的错误就是
“\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2146: syntax error : missing ';' before identifier 'Length'
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2501: 'DWORD' : missing storage-class or type specifiers
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(37) : error C2501: 'Length' : missing storage-class or type specifiers
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : error C2146: syntax error : missing ';' before identifier 'GetPrevLink'
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : error C2433: 'WINAPI' : 'inline' not permitted on data declarations
e:\学习资料\c++\vc6\vc6\vc6cn\vc98\include\list.h(53) : fatal error C1004: unexpected end of file found
执行 cl.exe 时出错.”
是什么原因呢,求高手帮忙
![在编写数据结构实现各种排序算法的过程中,在编译的时候显示我vc中的list.h有错误,双击那个错误的时候跳出来的页面也是](/uploads/image/z/8659921-49-1.jpg?t=%E5%9C%A8%E7%BC%96%E5%86%99%E6%95%B0%E6%8D%AE%E7%BB%93%E6%9E%84%E5%AE%9E%E7%8E%B0%E5%90%84%E7%A7%8D%E6%8E%92%E5%BA%8F%E7%AE%97%E6%B3%95%E7%9A%84%E8%BF%87%E7%A8%8B%E4%B8%AD%2C%E5%9C%A8%E7%BC%96%E8%AF%91%E7%9A%84%E6%97%B6%E5%80%99%E6%98%BE%E7%A4%BA%E6%88%91vc%E4%B8%AD%E7%9A%84list.h%E6%9C%89%E9%94%99%E8%AF%AF%2C%E5%8F%8C%E5%87%BB%E9%82%A3%E4%B8%AA%E9%94%99%E8%AF%AF%E7%9A%84%E6%97%B6%E5%80%99%E8%B7%B3%E5%87%BA%E6%9D%A5%E7%9A%84%E9%A1%B5%E9%9D%A2%E4%B9%9F%E6%98%AF)
在list.h的前面加上#include
在编写数据结构实现各种排序算法的过程中,在编译的时候显示我vc中的list.h有错误,双击那个错误的时候跳出来的页面也是
页数:这段程序有点小错误,显示的时候页数只显示当前页面的页数.比如说我在第五页,它只显示为"页数:5"我这里想表示的是全
数据结构中什么是排序算法的稳定性?
测试的时候可从数据库(SQL)中取出数据,可是在运行JSP跳转页面时候出现如下错误提示:
"在对一个C程序进行编译的过程中,可发现注释中的拼写错误"这句话对不?
托福转考错误,转考,已经付费了!但是转到报名界面的时候提示错误!我再点转考,它又要求付费!页面上也没有余额显示,怎么办,
51单片机 我对着书本检查了很多遍 看不出哪里有错误 编译的时候就说是delayms 前面缺少 ;#include #d
写程序时遇到错误 中文翻译是缺失函数原型 这个是什么意思 就是在编写子函数的时候 感觉已经声明了啊
关于数据结构排序算法的问题
数据结构关于排序算法的问题?
日出时候为什么太阳是跳出来的
有谁能不能给想一个用数据结构中排序或者图形中算法的一个变形算法?也就是帮忙用排序或图形出一道算法题