intmain(int argc, constchar * argv[]){ cout << "Instruction in case I forgot!" << endl; cout << endl; cout << "if you go with ./a.out -f that means include a file call names.txt to include names to raffle" << endl; cout << "add -reset at front will empty your names.txt" << endl; cout << "otherwise, whatever you add to raffle will be automatically add to names.txt as well" << endl; cout << endl; cout << "add username with @!" << endl; cout << "any input without @ will start the raffle!" << endl;
std::map<int,string> theMap; int index = 0;
if( argc > 1 ){ for(int i = 1 ; i < argc ; i++){ if(argv[i][0] == '-'){