可能会出现的错误: memset was not declared in this scope. strlen也会出现相同的问题, 是因为没有加 #include <string.h> using namespace std 结果如下: