Visual Studio2008 and 2010 run programs appear in black box immediately disappear solution
Source: Internet
Author: User
1
At the end of the program add System ("PAUSE");
Note that the Include header file #include "stdlib.h"//system need to call this
2 program end Add function GetChar ();
GetChar () is a function waiting for the user to enter characters, if the program does not have the GetChar () function, then the program will automatically end after running, the end of the added GetChar () will require users to manually enter characters to end the program
3 If you are using OPENCV, you can also use the Waitkey () function to solve
Add Waitkey () to the end of the program and note that you want to include the header file #include "highgui.h"
4 at run time, do not choose to start debugging, and choose "Start running (not debugging)" is also OK ~ shortcut key Ctrl+f5
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service