Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- #include <string>
- int main(int argc, char* argv[])
- {
- system(argv[1]);
- // Loading all the data from the scrambled list into main.
- std::cout << "Loading " << argv[1] << " into memory..." << std::endl;
- std::ifstream* scrambleList = new std::ifstream(argv[1]);
- std::string scrambleArray[50];
- std::string tempStr;
- for(int i = 0; i < 50; i++)
- {
- *scrambleList >> scrambleArray[i];
- std::cout << "#" << i << ": " << scrambleArray[i] << std::endl;
- if(scrambleList->eof())
- break;
- }
- std::cout << "Loading complete!" << std::endl << std::endl;
- for(int i = 0; scrambleArray[i] != "\0"; i++)
- {
- std::cout << "Executing decoders for " << scrambleArray[i] << std::endl;
- tempStr = "deslen ";
- tempStr += scrambleArray[i] + " ";
- tempStr += argv[2];
- tempStr += " ";
- tempStr += "temp";
- system((char*)tempStr.c_str());
- std::cout << " Executing: " << tempStr << std::endl;
- }
- system(argv[3]);
- return 0;
- }
- #include <iostream>
- #include <fstream>
- int main(int argc, char* argv[])
- {
- std::ofstream* targetList = new std::ofstream(argv[3]);
- std::ifstream* wordList = new std::ifstream(argv[2]);
- std::string fullArray[255];
- // Loading all the data from the full list into the array.
- for(int i = 0; i < 255; i++)
- {
- *wordList >> fullArray[i];
- if(wordList->eof())
- break;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment