pringscreem / FileCombiner

C++ program to combine multiple other C++ source files into one file by appending them to a single .cpp file
0 stars 0 forks source link

Make a design that removes copy/pasted code. #8

Closed pringscreem closed 1 month ago

pringscreem commented 2 months ago

Made a better design (uses an if-else chain in the while-loop and calls a helper function).

pringscreem commented 2 months ago

The redesign could be improved using a function pointer so that it does not have to go through the conditional statement chain on every line.