strings.cpp

I'm a beginner and for homework we were just assigned a lab in which we have to develop and test a lab incorporating myStrLen, myStrCmp, myStrCpy, myStrSwap, myStrUpr, and myStrLwr. I get how to write the indiivual programs but it says we have to fully test the function by putting several calls in main function using different C strings. I'm confused as to whether I'm supposed to prompt the user to enter words to be used as strings or if im supposed to put own strings in the code which can then be changed by the user. Any help would be greatly appreciated.
I doesn't sound like you're being asked to provide user input. Tests tend to have a variety of fixed test cases so the same test suite can be run on different versions of the program.
Thank you so much! I finished my code up
Last edited on
Topic archived. No new replies allowed.