Home > Back-end >  C how to realize the word similar word wrap function
C how to realize the word similar word wrap function

Time:06-02

Don't be too complicated, it is good to the realization of the basic... Experiment week homework

CodePudding user response:

If a line of maximum N characters
After winning the length of the string, to determine whether the first N + 1 Spaces, if it is direct disconnect; Otherwise forward find space first disconnect from this position, if can't find only hard disconnect
The second line it is good to do the same with the rest of the string in the

CodePudding user response:

I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related