Home > Back-end >  C beginners in doubt
C beginners in doubt

Time:09-22

I have the last character in the character array assignment became the last bottom line 6\0 why decision condition is not equal to 1 program that is written with the end \ 0 will not appear, please press any key to exit the clues? Seek inspiration, baidu less than

CodePudding user response:

refer to the original poster magic Mr LEO reply:
I have the last character in the character array assignment became the last bottom line 6\0 why decision condition is not equal to 1 program that is written with the end \ 0 will not appear, please press any key to exit the clues? Seek inspiration, baidu less than

YuChuLi function is remove the line break in the middle of the last one is also \ n

CodePudding user response:

reference 1/f, Mr LEO magic response:
Quote: refer to the original poster magic Mr LEO reply:
I have the last character in the character array assignment became the last bottom line 6\0 why decision condition is not equal to 1 program that is written with the end \ 0 will not appear, please press any key to exit the clues? Seek inspiration, baidu less than

YuChuLi function is to remove the line break in the middle of the last two addition and \ n

Make wrong not \ n \ 0 then use strcpy copy
  • Related