When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
12 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
but then i don't know how to remove trailing white space , like how would i know wheter i'm already past the last word ?
You can use the std::string's function string::find_last_not_of to get the index of last character that isnt a whitespace, and from there on delete the rest of the string.
And also goto #1013107104678162544
This is for help related to C lang
And there explain your question/issue in detail.
wouldn't it be cheating to use the inbuilt method ?
mb , i'll post it there
Please
@supple kelp
Please don't delete forum posts. They can be helpful to refer to later and other members can learn from them. In the future you can use !solved to close a post and mark a post as solved.