Home > Back-end >  Bubble sort
Bubble sort

Time:04-21

Why behind the scanf function doesn't work, has not yet been input is ended, bubble sort seems to have problem

CodePudding user response:

Ch length is 1, obviously with % s crossing the line, the problem before you mentioned before, give you reply cross-border problem?
C STR number of columns is variable, this does not support, support fixed length of the array;

CodePudding user response:

Suggest the building code, everybody is convenient,

CodePudding user response:

reference 1/f, confident boy reply:
ch length is 1, obviously crossed with % s, this problem before you mentioned before, give you the reply cross-border problem?
C STR number of columns is variable, this does not support, support fixed length of the array;

Oh oh oh, I see, finally found the, thank you

CodePudding user response:

Bubble sort, the code line 24 need to modify, for (j=0; J for (j=0; J
  • Related