+ 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..
6 Antworten
+ 2
I ended up using a vector and then modify the vector
+ 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/
+ 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.
0
NonStop CODING i tried it b4 but its reading the whole raw string as one.
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
- 1
NonStop CODING Is there a way around it :(