求算法精解C语言描述的源代码库文件解决方案
求算法精解C语言描述的源代码库文件
试着编译一下,发现错误提示:fatal error C1083: Cannot open include file: 'geometry.h': No such file or directory
后来到vc98目录下找,发现美有geometry.h的文件。
求算法精解C语言描述的源代码库文件,我是XP系统用的VC++6.0,算法书上的函数在文件夹里找不到库文件。
------解决方案--------------------
C:\《算法精解C语言实现》例子代码\examples_pc\include\geometry.h:
试着编译一下,发现错误提示:fatal error C1083: Cannot open include file: 'geometry.h': No such file or directory
后来到vc98目录下找,发现美有geometry.h的文件。
求算法精解C语言描述的源代码库文件,我是XP系统用的VC++6.0,算法书上的函数在文件夹里找不到库文件。
------解决方案--------------------
C:\《算法精解C语言实现》例子代码\examples_pc\include\geometry.h:
/*****************************************************************************
* *
* ------------------------------ geometry.h ------------------------------ *
* *
*****************************************************************************/
#ifndef GEOMETRY_H
#define GEOMETRY_H
#include "list.h"
/*****************************************************************************
* *
* Define an approximation for Pi. *
* *
*****************************************************************************/
#ifndef PI
#define PI 3.14159
#endif
/*****************************************************************************
* *
* Define macros for comparisons. *
* *
*****************************************************************************/
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
/*****************************************************************************
* *
* Define macros for converting between degrees and radians. *
* *