[求助]iostream.h与iostream的区别
这两个有什么区别?为什么有的程序不加H不通过,有的加了H不通过,真怪,求高手指典。 例1: 不加H不通过:
# include <iostream.h>
# include <stdio.h>
void main()
{
char grade =75;
grade>60? cout<<"True\n" : cout<<"False\n";
cout << (grade>=60? "True\n":"False\n");
}
例2:加H不通过
//using name space
# include <iostream>
using namespace std;
int main()
{
cout<<" Welcome to C++!\n";
std::cout<<"welcome to C++!\n";
return 0;
}
高手指点了……