//#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
char name1[100],name2[100];
cin>>name1>>name2;
cout<<name1<<
endl<<
endl;
printf("hahaha");
cout<<"虽然不知道能不能进复试但是还是要学c++呀"<<endl;
return 0;
}
在里面我发现有iostream的话没有cstdio都可以使用输入输出语句,printf和cout都没有问题。
把cstdio留下但是iostream不保留,就会报错。可见,cstdio的作用不是很明显,但是iostream的用处很大,所以刚开始学习的时候还是先把iostrem写上。