Project 5 Test Data

Project 5 Test Data - Project 5 Test Routine We took your...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Project 5 Test Routine We took your Project 5 source file, and made the following tranformations: Rename main to xxxmain . Rename fillWords to xxxfillWords . Rename playOneRound to xxxplayOneRound . We then appended the following code to your file and ran the 17 test cases: #include <iostream> #include <string> #include <sstream> #include <cstring> #include <cstdlib> using namespace std; int xxxtestno; { num = 0; switch (xxxtestno) { default: return; case 1: case 2: case 3: strcpy(words[num++], "hello"); return; case 4: case 5: case 6: case 7: case 8: strcpy(words[num++], "wowie"); strcpy(words[num++], "hello");
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
return; case 9: strcpy(words[num++], "daisy"); strcpy(words[num++], "hello"); return; case 10: strcpy(words[num++], "lurid"); strcpy(words[num++], "hello"); return; case 11: strcpy(words[num++], "lulls"); strcpy(words[num++], "hello"); return; case 12: strcpy(words[num++], "stare"); strcpy(words[num++], "aster"); return; case 13: strcpy(words[num++], "lone"); strcpy(words[num++], "hello"); return; case 14: strcpy(words[num++], "lonely"); strcpy(words[num++], "hello"); return; case 15: strcpy(words[num++], "lone"); strcpy(words[num++], "hello"); return; case 16: strcpy(words[num++], "lonely");
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 11/07/2009 for the course CS 31 taught by Professor Melkanoff during the Spring '00 term at UCLA.

Page1 / 6

Project 5 Test Data - Project 5 Test Routine We took your...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online