Loading main.cpp +11 −4 Original line number Diff line number Diff line Loading @@ -24,13 +24,16 @@ void assertFalse(bool val, std::string failureReport) { } // STUBS #ifdef LAB4 void p88(); void e98(); void p92(); void p94(); void p916(); #elifdef LAB3 // add lab 3 stubs void e61(); void e610(); bool same_elements(int a[], int b[], int size); Loading @@ -41,6 +44,9 @@ void e79(); //char* replace_all(const char s[], const char t[], const char u[]); #endif // TESTS #ifdef LAB4 #elifdef LAB3 void testE610() { // run the test cases from the book int a[]={1,4,9,16,9,7,4,9,11}; Loading @@ -66,6 +72,7 @@ void testE74() { void testE79() { // to do } #endif // MAIN int main() { Loading Loading
main.cpp +11 −4 Original line number Diff line number Diff line Loading @@ -24,13 +24,16 @@ void assertFalse(bool val, std::string failureReport) { } // STUBS #ifdef LAB4 void p88(); void e98(); void p92(); void p94(); void p916(); #elifdef LAB3 // add lab 3 stubs void e61(); void e610(); bool same_elements(int a[], int b[], int size); Loading @@ -41,6 +44,9 @@ void e79(); //char* replace_all(const char s[], const char t[], const char u[]); #endif // TESTS #ifdef LAB4 #elifdef LAB3 void testE610() { // run the test cases from the book int a[]={1,4,9,16,9,7,4,9,11}; Loading @@ -66,6 +72,7 @@ void testE74() { void testE79() { // to do } #endif // MAIN int main() { Loading