fatal error C1083: Cannot open include file: 'streambuf': No such file or directory

liuhuili23 2009-04-16 10:34:16
我编了一个简单的代码,可是报错为 fatal error C1083: Cannot open include file: 'streambuf': No such file or directory
Error executing cl.exe.
为什么???
#include<iostream>
int mian()
{
int base,exponent;
std::cout<<"base is : ";
std::cin>>base;
std::cout<<endl<<"exponent is :";
std::cin>>exponent;
std::cout<<"pow is "<<pow(base,exponent);
return 0;
}
...全文
1041 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuhuili23 2009-04-29
  • 打赏
  • 举报
回复
应该是编译器的问题,我后来使用VS运行了下,成功了,具体什么原因我还是不太清楚
yangqiang0619 2009-04-28
  • 打赏
  • 举报
回复
土狼的土狼


9 楼的在我这,还是出现同样的错误


估计是编译器的问题 哎。
  • 打赏
  • 举报
回复

using namespace std;
int main()
{
int base,exponent;
std::cout < <"base is : ";
std::cin>>base;
std::cout < <endl < <"exponent is :";
std::cin>>exponent;
std::cout < <"pow is " < <pow(base,exponent);
return 0;
}
barry7987 2009-04-17
  • 打赏
  • 举报
回复
using namespace std;
int main()
jackyjkchen 2009-04-17
  • 打赏
  • 举报
回复
我晕
k21w4 2009-04-17
  • 打赏
  • 举报
回复
#include <math>
using namespace std;
main
lingyin55 2009-04-17
  • 打赏
  • 举报
回复
[Quote=引用 8 楼 liuhuili23 的回复:]
我也晕,谢谢各位大哥,下次不会出现这么种错误了,不过也不对,
我照你们说的去改了还是有这个错误,还请各位大哥帮小弟再看看
[/Quote]


#include <math.h>
#include <iostream>
using namespace std;
int main()
{
int base,exponent;
std::cout <<"base is : ";
std::cin>>base;
std::cout <<endl <<"exponent is :";
std::cin>>exponent;
std::cout <<"pow is " <<pow(base,exponent);
return 0;
}


上面的编译通过了啊,应该不会有错误了吧
liuhuili23 2009-04-17
  • 打赏
  • 举报
回复
我也晕,谢谢各位大哥,下次不会出现这么种错误了,不过也不对,
我照你们说的去改了还是有这个错误,还请各位大哥帮小弟再看看
donle1000 2009-04-16
  • 打赏
  • 举报
回复
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int base,exponent;
std::cout < <"base is : ";
std::cin>>base;
std::cout < <endl < <"exponent is :";
std::cin>>exponent;
std::cout < <"pow is " < <pow(base,exponent);
return 0;
}
mengde007 2009-04-16
  • 打赏
  • 举报
回复
#include <iostream>
#include <math.h>
using namespace std;
int main()
mengde007 2009-04-16
  • 打赏
  • 举报
回复
LZ,main()写错了

33,311

社区成员

发帖
与我相关
我的任务
社区描述
C/C++ 新手乐园
社区管理员
  • 新手乐园社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧