阅读背景:

如何使用string.substr()函数?

来源:互联网 

I want to make a program that will read some number in string format and output it like this: if the number is 12345 it should then output 12 23 34 45 . I tried using the substr() function from the c++ string library, but it gives me strange results - it outputs 1 23 345 45 instead of the expected result. Why ?I want to make a program that will read some nu




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: