Home > Back-end >  The scanf read methods about mixed a comma in the data
The scanf read methods about mixed a comma in the data

Time:09-24

Establish order list as follows:
Typedef struct Table
{
Int * head;
} the Table;
Todd Harper ead=(int *) malloc ( n * sizeof (int));
N input data read

Such as input six:
6

Use the scanf in turn to order table assignment 60,68,72,75,88,95
But in the the scanf (" % d ", & amp; Todd Harper ead [I]); statement or other, unable to complete reading data
Solving!!!!!

CodePudding user response:

send complete code

CodePudding user response:

Just now you these words I can only answer you
Can I complete read
finished

CodePudding user response:

for(int i=0; I{
The scanf (" % d ", & amp; Todd Harper ead [I]);
}
In this cycle to order table assignment,
The input data for: 60,68,72,75,88,95
The comma here influence assignment, can only assign the first data, not behind,
  • Related