标签云

微信群

扫码加入我们

WeChat QR Code

I'm having trouble here with this code:unsigned long value = stoul ( s, NULL, 11 );that gives me this error with c++ 98error: 'stoul' was not declared in this scopeIt works on C++11, but I need this on C++98.


Why on earth do you pass s.c_str() to stoul, which accepts std::string if type of s is std::string?

2019年05月23日53分38秒

You can try strtoul.

2019年05月23日53分38秒

MikeCAT Im sorry, got it edited now

2019年05月24日53分38秒

What is type of s?

2019年05月24日53分38秒

Thanks got it working! ill check this after 8 mins!

2019年05月24日53分38秒