Home > Back-end >  Can you tell me where the problem is thank you bosses
Can you tell me where the problem is thank you bosses

Time:11-13


Title and the procedure is shown in figure
Want to ask I wrote
When the program runs
No finish data entry procedures themselves out of this is why

CodePudding user response:


This is a topic

CodePudding user response:

N no initialization? Your input number did not according to your idea to keep in a array

CodePudding user response:

Some people say that add a space before "% d", namely "% d", don't know what will work
In addition:
First, n't initialise, dangerous, such n can be any value, lead to the core dump
Second, the for (int I=0; I>=0; I++) this cycle will not end, will run to the glebe's old

CodePudding user response:

The
references a white steamed bread on the second floor response:
n no initialization? You input the number of preserving according to your ideas in a array

Yes, the main problem here,

The following cycle also has a problem, I & gt;=0 is not an infinite loop?
The entire program and all feel very strange ~

CodePudding user response:

reference 6 building self-confidence boy reply:
Quote: refer to the second floor a white steamed bun response:
n no initialization? You input the number of preserving according to your ideas in a array

Yes, the main problem here,

The following cycle also has a problem, I & gt;=0 is not an infinite loop?
The entire program and all feel very strange ~

Ha, ha, ha, eat cool for loop?
  • Related