• 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
Python Developer
0 Votes
hi my coding instor told me to make a calculator that find the average of two numbers can you pls tell me my erro
0 Votes
Hi guys I need some one to teach the String name how I can do it true because when I finish coding they give me NO OUTPUT
1 Votes
Question
0 Votes
Wayss
0 Votes
generic programming understanding memory ownership
0 Votes
fully dynamic arrays
1 Votes
I dont now that how to do js
2 Votes
Guys who tell me
0 Votes
Can someone help with teaching me this coding of a thing
0 Votes