在turbo c++3.0中编程为什么提示undefined symbol'cout'

来源:百度知道 编辑:UC知道 时间:2024/05/26 23:58:10
我刚学c++ 但输入一些c++中的输入输出时就提示 undefined symbol 'cout' 请高手帮忙
例如我编程如下
#include<iostream.h>
#include<math.h>
void main()
{
double a.b.c;
cin>>a>>b;
c=a>b?a:b;
cout<<sqrt(c)<<end1;
}
也提示undefined symbol 'cout'

//问题有:
//1.不用.h,所以用
// #include <iostream>
// #include <cmath>
//2,加名字空间:
// using namespace std;或者
//(using std::cout;
// using std::cin;
// using std::endl;)
//3.endl 不是end1.注意细节

#include<iostream>
#include<cmath>
using namespace std;
int main()
{
double a.b.c;
cin>>a>>b;
c=a>b?a:b;
cout<<sqrt(c)<<endl;
}

using namespace std;

没有include<iostream.h>吧?