不加.h
没有.h
我也刚学,嘿嘿嘿,引用头文件应该是#include
#include<iostream>//第一行改为这两句 using namespace std;
头文件和命名空间你头文件都写错了命名空间都没有