#include <stdio.h>
#include <iostream>
int main(int argc,char **argv)
{
int a = 0;
int b = 0;
std::cin >> a >> b;
return 0;
}#include <stdio.h> 这是C语言的头文件 #include <iostream> 这是C++语言的头文件
两者可以理解作用相同
std::cin >> a >> b;这里是属于#include <iostream>
因此,
必须要包含#include <iostream>