包含在#include<string>,不是c++11的可以在#include<cstring>。作用是將字串轉化為int型。區別是stoi的形參是const string*,而atoi的形參是const ...
確定! 回上一頁