vc2010 running result crash solution:
1. Press ctrl F5 to only execute without debugging
2. Manually call in cmd instead of clicking directly
3. Add getchar
#include <iostream>using namespace std;int main(void) { cout<<"welcome!"; getchar(); return 0; }
In this way, you can exit by entering any value
4. Call system function
#include<stdio.h>#include<stdlib.h>void main(void) { int a=10,b=36; printf("%d+%d=%d",a,b,a+b); system("pause"); }
For more technical articles related to common problems, please visit the FAQ Tutorial column to learn!
The above is the detailed content of vc2010 running result crash solution. For more information, please follow other related articles on the PHP Chinese website!