C++11

// <string>
unsigned long stoul (const string& str, size_t* idx = 0, int base = 10);
​unsigned long stoul (const wstring& str, size_t* idx = 0, int base = 10);

将字符串转化成无符号(Unsigned)整数。