How to remove the last sentence? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to remove the last sentence?

I tried... https://code.sololearn.com/cNL9KN2PVvAf/?ref=app

20th Jan 2018, 9:31 PM
Expert
Expert - avatar
4 Answers
+ 4
Sorry it took so long. I was cooking supper. https://code.sololearn.com/cq2Lgo2NlMe2
20th Jan 2018, 11:49 PM
John Wells
John Wells - avatar
+ 2
Standard array's can't be modified like the library classes. If you wish to remove at the end, sticking \0 in makes everything after invisible. Removing a character in middle requires copying all the following down one. To delete your middle sentence, shift the third down to overwrite it.
20th Jan 2018, 10:29 PM
John Wells
John Wells - avatar
+ 1
@John Wells, translator, I think, not translated, as you wrote. So could You give the code? I understand the code. Thank you!
20th Jan 2018, 10:35 PM
Expert
Expert - avatar
+ 1
@John Wells, thank you!
21st Jan 2018, 7:37 AM
Expert
Expert - avatar