数据结构(C语言版)

首先,学会用Vistual C++创建一个顺序表,以及对顺序表的基本操作。

(1)新建一个工程 Win30Application

(2)新建SeqList.h

(3)新建SeqList.cpp,导入SeqList.h头文件。我出现的错误如下:

k:\数据结构\workplace\线性表的顺序存储\seqlist\seqlist.cpp(3) : fatal error C1083: Cannot open include file: 'SeqList.h': No such file or directory

原因是SeqList.里的代码写错了,并不是找不到.h文件。

一,error描述

写好main.cpp文件,连接报错:unresolved external symbol _WinMain@16  

二,原因

Win32 Application多一些和Win32 Console Application的问题,Win32 Console Application主要写dos环境下的代码,入口函数main();Win32 Application入口函数WinMain()。

三.解决方法

改为另一种Win32 或者按照博客里的方法修改。

相关博客:https://blog.csdn.net/wanrenwangxuejing/article/details/18081179

猜你喜欢

转载自www.cnblogs.com/versionk/p/10546677.html
今日推荐