• Cursos
  • Compilador de Código
  • Debatir
  • Precios
  • Teams
Menu
0

How to input a string as a sentence with a space separating the words and then split the words of the string in c++???

C++

c++
27th Jan 2021, 5:56 PM
Psyco Techie
2 Respuestas
+ 5
Use std::stringstream if you just want to split into words http://www.cplusplus.com/reference/sstream/stringstream/ Example: https://code.sololearn.com/cONOoTGOXehk/?ref=app
27th Jan 2021, 6:27 PM
XXX
XXX - avatar

¿Tienes a menudo preguntas como esta?

Aprende gratis de forma más eficaz

  • Introducción a Python

    7,1M de estudiantes

  • Introducción a Java

    4,7M de estudiantes

  • Introducción a C

    1,5M de estudiantes

  • Introducción a HTML

    7,5M de estudiantes

Ver todos los cursos
En tendencia hoy
Best way to learn a new programming language fast?
3 Votes
Where make_unique is better than unique_ptr(raw pointer)
0 Votes
Will i land a job
1 Votes
Course
1 Votes
Why we use oops in python rather than any function ?
1 Votes
someone helps how can i make two for loops over a 2d array in c ( i didn't learned pointers yet )
0 Votes
why is my leaderboard diferent than my brothers
0 Votes
Project ideas
1 Votes
What do you think would be good for some new courses?
0 Votes
Do you think AI will replace programmers?
0 Votes