你好,
在#include<iostream>之前,你是否include stdafx.h 头文件?如果没有,可以添加后试试。
#include "stdafx.h"
#include <iostream>
其次,请确保你编译程序没有错误后再运行程序。以下截图是我重现你的程序的截屏:

May
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.