Fleeting handling of the DOS interface of VS and Dev running results
In the process of running a program with VS2010 and Dev C++, there will be a phenomenon that the DOS interface flashes past and does not see the result clearly. I personally have two solutions to this problem:
1. Add the while () dead loop to the input, so that after one input gets the result, the DOS interface will not close but wait for the next input!
two。 This method is more common, is to add # include to the header file, and add system ("pause") before the end of the main function; if the main function has a return type, such as return 0, add system ("pause"); add to renturn 0; before, if the main function is of type void, put system ("pause") at the end of the function!