Convert string of 3 integers to ints

前端 未结 0 372
半阙折子戏
半阙折子戏 2020-12-07 23:45

I am taking 3 integers in the form of a string (line) with spaces. eg, 1 3 11.

How can I convert the string to 3 separate integers?

  string line;
  wh         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题