我输入以下代码,显示了这样的错误:
#include<iostream>#include<string>#include"rect.h"usingnamespacestd;intApiMain(){cout...
#include <iostream>
#include <string>
#include "rect.h"
using namespace std;
int ApiMain(){
cout<<"Enter size of data set: ";
int n;
cin>>n;
SimpleWindow W("Data set display",n+2,10);
W.Open();
for(float x=1;x<=n;++x){
cout<<"Enter data value(n): ";
float y;
cin>>y;
RectangleShape Point(W,x,y,Blue,0.25,0.25);
Point.Draw();
}
return 0;
}
这样的错误:
fatal error C1083: Cannot open include file: 'rect.h': No such file or directory
不大明白,还请高手多多指教! 展开
#include <string>
#include "rect.h"
using namespace std;
int ApiMain(){
cout<<"Enter size of data set: ";
int n;
cin>>n;
SimpleWindow W("Data set display",n+2,10);
W.Open();
for(float x=1;x<=n;++x){
cout<<"Enter data value(n): ";
float y;
cin>>y;
RectangleShape Point(W,x,y,Blue,0.25,0.25);
Point.Draw();
}
return 0;
}
这样的错误:
fatal error C1083: Cannot open include file: 'rect.h': No such file or directory
不大明白,还请高手多多指教! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询