C++ 编程 并带有我这边检测出来的错误

来源:百度知道 编辑:UC知道 时间:2024/06/10 07:16:15
// 20090228.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "iostream.h"
#include "coordin.h" // structure templates, function prototypes
//using namespace std;

int main(int argc, char* argv[])
{
rect rplace;
polar pplace;

cout << "Enter the x and y values: ";
while (cin >> rplace.x >> rplace.y) // slick use of cin
{
pplace = rect_to_polar (rplace);
show_polar (pplace);
cout << "Next two numberes (q to quit):";
}
cout << "Bye!\n";
printf("Hello World!\n");
return 0;
}
cpp(5) : fatal error C1083: Cannot open include file: 'coordin.h': No such file or directory
执行 cl.exe 时出错.

谢谢了

'coordin.h':你的系统里没有这文件。要么就说你写错了

'coordin.h'

先弄明白你这个头文件是干啥用的。
看看这个头文件放在那里。

这段错误提示是说,找不到这个头文件。

看看环境变量的设置,不行就把这个文件以及相关的文件拷贝到当前工程的目录下面来。