Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- using namespace std;
- void 1();
- void 2();
- void 3();
- void 4();
- void 5();
- void 6();
- void 7();
- void 8();
- void 9();
- void inputletter();
- //search any number, if q go back to the selection
- int main( )
- {
- string isFile, word[];
- cout << "enter the txt file directory";
- cin >> isFile;
- ofstream openfile ( isfile.c_str() );
- if(openFile)
- {
- int i = 0, c;
- while (openFile >> word[i])
- i++;
- while(true)
- {
- cout << i + 1 << "words were read in."
- << endl
- << endl
- << " 1: Substrings" << endl;
- << " 2: Superstrings" << endl;
- << " 3: Subbags" << endl;
- << " 4: Samebags" << endl;
- << " 5: Similarbags" << endl;
- << " 6: Superbags" << endl;
- << " 7: Subsets" << endl;
- << " 8: Samesets" << endl;
- << " 9: Supersets" << endl;
- << " 10: Exit" << endl;
- << "Enter a number from 1 to 10 :" << endl;
- cin >> c;
- //Case sets here from 1 - 9, default break
- }
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement