Home > Back-end >  On a number of different variables to repeat similar operations
On a number of different variables to repeat similar operations

Time:12-15

Want to several types of operation, several variables read first, then output to remove, but feel a duplicate copy and paste too wordy, is there any more simple method?
This is the code:

The scanf (" % s ", & amp; Name);
Fprintf (fp, "% s", name);
fflush(stdin);

The repetition is probably for this code, variable name no rule

CodePudding user response:

Look at the code generation technology,
  • Related