Home > Back-end >  Bubble sort
Bubble sort

Time:04-16

Why can't run behind, I also have the sort of like problem

CodePudding user response:

Line 24 ,
 for (j=0; j

CodePudding user response:

First of all to ch the scanf is cross-border access problem, the result is undefined, in addition to STR is variable array, C language does not support this definition ~

CodePudding user response:

reference 2 building self-confidence boy reply:
the scanf for ch is first cross-border access problem, the result is undefined, in addition to STR is variable array, C language does not support this definition ~

Then how can I change ah, I changed a few times still won't do

CodePudding user response:

wow kaka bju international reference 3 floor response:
Quote: refer to the second floor confident boy reply:
the scanf for ch is first cross-border access problem, the result is undefined, in addition to STR is variable array, C language does not support this definition ~

Then how can I change ah, I changed a few times still won't do

Ch is defined as the first 8 bytes, later all don't need to be modified to the operation of the ch;
The second defined two-dimensional array (length), rather than using an array variable;
  • Related