• Courses
  • Code Compiler
  • Discuss
  • Pricing
  • Teams
Menu
+ 1

How to convert a string to a number in C ++?

c++stringsint
1st Jun 2020, 12:09 PM
Тимофей Орловский
4 Answers
+ 1
* For integer types https://en.cppreference.com/w/cpp/string/basic_string/stol * For floating point types https://en.cppreference.com/w/cpp/string/basic_string/stof
1st Jun 2020, 12:16 PM
Ipang
+ 1
Thank
1st Jun 2020, 12:18 PM
Тимофей Орловский
0
Like this? https://code.sololearn.com/c55j23OEWbze/?ref=app
1st Jun 2020, 12:12 PM
Тимофей Орловский

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
What to do after finishing Python Developer
3 Votes
New learner
1 Votes
IS POSSIBLE TO PRINT 1 TO 100 WITHOUT FOR LOOP
0 Votes
Slicing
3 Votes
Practice code
1 Votes
Is there a similar app like Sololearn?
1 Votes
Why cant i run the codes in testing and also cannot do the practice. It shows "error" all the time whenever i try
0 Votes
Unknown keywords in C
0 Votes
In html how do you get more than one html documents for more than 1 pages? I’m on iPhone / mobile
3 Votes
Différence in html
0 Votes