Advertisement
Guest User

Sudowoodo

a guest
Sep 23rd, 2014
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.11 KB | None | 0 0
  1.  
  2. #include <iostream>
  3. #include <fstream>
  4. #include <string>
  5. using namespace std;
  6.  
  7. void 1();
  8.  
  9. void 2();
  10.  
  11. void 3();
  12.  
  13. void 4();
  14.  
  15. void 5();
  16.  
  17. void 6();
  18.  
  19. void 7();
  20.  
  21. void 8();
  22.  
  23. void 9();
  24.  
  25. void inputletter();
  26. //search any number, if q go back to the selection
  27.  
  28. int main( )
  29. {
  30.     string isFile, word[];
  31.     cout << "enter the txt file directory";
  32.     cin >> isFile;
  33.     ofstream openfile ( isfile.c_str() );
  34.    
  35.     if(openFile)
  36.     {
  37.         int i = 0, c;
  38.         while (openFile >> word[i])
  39.             i++;
  40.         while(true)
  41.         {    
  42.             cout << i + 1 << "words were read in."
  43.                  << endl
  44.                  << endl
  45.                  << "  1: Substrings"   << endl;
  46.                  << "  2: Superstrings" << endl;
  47.                  << "  3: Subbags"      << endl;
  48.                  << "  4: Samebags"     << endl;
  49.                  << "  5: Similarbags"  << endl;
  50.                  << "  6: Superbags"    << endl;
  51.                  << "  7: Subsets"      << endl;
  52.                  << "  8: Samesets"     << endl;
  53.                  << "  9: Supersets"    << endl;
  54.                  << " 10: Exit"         << endl;
  55.                  << "Enter a number from 1 to 10 :" << endl;
  56.                  
  57.                  cin >> c;
  58.                  //Case sets here from 1 - 9, default break
  59.         }
  60.     }
  61. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement