c++编程的时候碰到一个问题,,实在是不会啊,那位大虾救救我吧!!!~~~

在编程的时候出现了这个错误这是我的源程序。#include"iostream.h"#include"iostream.h"#include"math.h"#include... 在编程的时候出现了这个错误
这是我的源程序。#include "iostream.h"
#include "iostream.h"
#include "math.h"
#include "stdio.h"
void main()
{
float x,x0,x1,y0,y1,y;
printf("\n输入二个已知的函数值");
cin<<x0<<x1<<y0<<y1;
printf("\n输入要进行插植的数");
cin<<x;
y=y0*(x-x1)/(x0-x1)+y1*(x-x0)/(x1-x0);
cout>>y;
}
下面是错误的说明。
D:\Program Files\Microsoft Visual Studio\MyProjects\ttt\sdgds.cpp(10) : error C2676: binary '<<' : 'class istream_withassign' does not define this operator or a conversion to a type acceptable to the predefined operator
不行啊,,还是不能解决啊,!!!~~~
错误还是没有消失。
错误还是存在,D:\Program Files\Microsoft Visual Studio\MyProjects\ttt\sdgds.cpp(12) : error C2676: binary '<<' : 'class std::basic_istream<char,struct std::char_traits<char> >' does not define this operator or a conversion to a type acceptable to the predefined o
展开
 我来答
comstep
2006-04-27 · 超过15用户采纳过TA的回答
知道答主
回答量:30
采纳率:0%
帮助的人:44.6万
展开全部
1.改为
#include <iostream.h>
#include <math.h>
#include <stdio.h>

2.在

#include "iostream.h"
#include "math.h"
#include "stdio.h"
后面添加一句:
using namespace std;
壹越一名会料方2125
2006-04-27 · TA获得超过1392个赞
知道答主
回答量:248
采纳率:100%
帮助的人:0
展开全部
楼上不对,改为:
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
才对,注意哪些有h,哪些没有
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
百度网友1bce9e1
2006-04-27 · 超过10用户采纳过TA的回答
知道答主
回答量:92
采纳率:0%
帮助的人:33.8万
展开全部
在VC.net中运行C程序是要注意命名空间
头文件引用改为:
#include <iostream>
#include <math.h>
#include <stdio.h>
using namespace std;
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
zzsheng_1985
2006-04-27 · 超过17用户采纳过TA的回答
知道答主
回答量:65
采纳率:0%
帮助的人:0
展开全部
晕,
#include<iostream> using namespace std居然和#include<stdio.h>混用,后面的没有必要加上
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 更多回答(2)
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式