我从C盘名为1.TXT文件读取字符串"1"到string h中但是用了atoi这个函数却出现“atoi”: 不能将参数 1 从“const std::string”转换为“const char *”这样的提示,头文件我已经有#include "stdio.h"了,但是最终还是无法将h的值赋予整型int k。请教高手解答。