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

Copying each line three times #1

Closed pringscreem closed 2 months ago

pringscreem commented 2 months ago

The output file has every line copied into it three times, except the include filename statement for the test class that matches the class header filename (#include "Game.h"), which is copied twice (the check must be working, it is just going through the copy loop three times).

pringscreem commented 2 months ago

Fixed. This was caused by incorrect loop structure (fixed by writing out the desired steps on paper instead of rushing through it). Also fixed an issue with std::string::npos (true indicates no matches, false indicates a match was found).