改成.cpp试试
iostream不要用“”括起来,去掉两侧的引号
#include <iostream> #include <string>
去掉引号,改成:
#include <iostream> #include <string.h>