Hey guys, I have a problem, I have to take a text and depending if a boolean - split_words is true or false I have to parse the text on some lines splitting the words or leaving them whole.
for example, text is: This is the text I have to split.
split_words = true
This is th
e text I h
ave to spl
split_words = false
the text I
the 0123456789 are just for guidelines.
I managed to do the part for split_words = true, I can seem to figure out to do it for split_words=false.
it seems the text arrangement gets change when I post but I hope you get the ideea behind the split.
Thank you for the idea, I finally managed to do it.
for split=true code is pretty intuitive, for false it took a little work but I managed to finish it.
I can't post the code yet because the homework is still active but if you don't mind I can pm you the code and you can give me feedback on how I can optimize it.