Loading main.cpp +23 −7 Original line number Diff line number Diff line #include <iostream> // FILE CHECKS #if __has_include("lab3.cpp") #define LAB3 #endif #if __has_include("lab4.cpp") #if __has_include("lab5.cpp") #define LAB5 #elif __has_include("lab4.cpp") #define LAB4 #elif __has_include("lab3.cpp") #define LAB3 #endif // HELPERS Loading @@ -25,7 +26,14 @@ void assertFalse(bool val, std::string failureReport) { // STUBS #ifdef LAB4 #ifdef LAB5 void e107(); void p101(); void p102(); void e1112(); void e1116(); #elifdef LAB4 void p88(); void e98(); void p92(); Loading @@ -44,7 +52,9 @@ void e79(); //char* replace_all(const char s[], const char t[], const char u[]); #endif // TESTS #ifdef LAB4 #ifdef LAB5 #elifdef LAB4 #elifdef LAB3 void testE610() { Loading Loading @@ -76,7 +86,13 @@ void testE79() { // MAIN int main() { #ifdef LAB4 #ifdef LAB5 e107(); p101(); p102(); e1112(); e1116(); #elifdef LAB4 p88(); e98(); p92(); Loading Loading
main.cpp +23 −7 Original line number Diff line number Diff line #include <iostream> // FILE CHECKS #if __has_include("lab3.cpp") #define LAB3 #endif #if __has_include("lab4.cpp") #if __has_include("lab5.cpp") #define LAB5 #elif __has_include("lab4.cpp") #define LAB4 #elif __has_include("lab3.cpp") #define LAB3 #endif // HELPERS Loading @@ -25,7 +26,14 @@ void assertFalse(bool val, std::string failureReport) { // STUBS #ifdef LAB4 #ifdef LAB5 void e107(); void p101(); void p102(); void e1112(); void e1116(); #elifdef LAB4 void p88(); void e98(); void p92(); Loading @@ -44,7 +52,9 @@ void e79(); //char* replace_all(const char s[], const char t[], const char u[]); #endif // TESTS #ifdef LAB4 #ifdef LAB5 #elifdef LAB4 #elifdef LAB3 void testE610() { Loading Loading @@ -76,7 +86,13 @@ void testE79() { // MAIN int main() { #ifdef LAB4 #ifdef LAB5 e107(); p101(); p102(); e1112(); e1116(); #elifdef LAB4 p88(); e98(); p92(); Loading