+ 1

I need it to read line by line. But it reads the whole string

https://code.sololearn.com/cyle6NcoSbPM/?ref=app The output that I need is. String1 until ‘\n’ String2 until ‘\n’ String3 until ‘\n’ ect..

13th Apr 2022, 5:08 AM
Yones Mussa
6 Antworten
+ 2
I ended up using a vector and then modify the vector
13th Apr 2022, 7:36 AM
Yones Mussa
+ 1
you will not be able to process "\n" here because its a Raw string read this 👇👇👇 https://www.geeksforgeeks.org/raw-string-literal-c/
13th Apr 2022, 5:18 AM
NonStop CODING
NonStop CODING - avatar
+ 1
Print the word variable, not the str variable. Remove the break. Add another newline to really see the difference, otherwise it'll just be the same.
13th Apr 2022, 7:20 AM
Dennis
Dennis - avatar
0
NonStop CODING i tried it b4 but its reading the whole raw string as one.
13th Apr 2022, 5:13 AM
Yones Mussa
0
Yones Mussa are you trying to print the entire paragraph word by word ??? like in a cup or small bowl if yes then just split your string from space
13th Apr 2022, 5:23 AM
NonStop CODING
NonStop CODING - avatar
- 1
NonStop CODING Is there a way around it :(
13th Apr 2022, 5:20 AM
Yones Mussa