edit: wasn't paying attention. That line of code never gets called, and here's why:
main()Code:if(line == "/help") { cout<<"command list\n /info - information of program\n /help - list of commands"<<endl; main(); // GO TO MAIN } else { cout<<"Failed To Get Command"<<endl; main(); // GO TO MAIN } ...
^^No Matter what, this code only has 2 options..or 1 really
The code never RUNS the 2nd if statement, because of the first one
If the input isn't "/help", the code just calls main...
where it checks for "/help" ELSE call main...
where it checks for "/help" ELSE call main..
forever and ever.