How about this? I think I got all my mistakes.
int i,pass;
boolean swapMade;
pass = 1;
*numberCompares = 0;
*numberMoves = 0;
Type: Posts; User: lscamaro
How about this? I think I got all my mistakes.
int i,pass;
boolean swapMade;
pass = 1;
*numberCompares = 0;
*numberMoves = 0;
Where? I'm trying to see where it would go but I can't come up with anything
How does this look? Is this right?
int i,pass;
boolean swapMade;
pass = 1;
*numberCompares = 0;
*numberMoves = 0;
I honestly think that might be it. Well at least I hope it is because even he said that goto's were bad and that they should never be used but then he assigns us this task
Now, before anyone says anything, I know that using a goto statement is not "right". Either way, my school professor asked us to modify a piece of code we have previously written and used to work...
On line 9 I already tried switching the i with j and vice versa but the program crashes shortly after that.
I mean transposing like rows to columns. In other words, we have to print the names not in rows but in columns.
I'm a college student learning how to program in C. We recently got an assignment to transpose a list of names. We have to read in from a file a list of names and print them out and write to a file...