First of all, we will often encounter the situation of running the results after coding in VS, and then suddenly flashing back, which is very bad, high for half a day, nothing to see. And I don’t know how to solve it.
Now, here are three ways to do it:
The first two, you probably know.
1 & gt; That’s when return 0; I’m going to do a getchar (); Getchar is waiting for input, so it effectively stops the result screen running;
2 & gt; Similar to the first method, in return 0; Pause a system(“pause”); The statement;
3 & gt; This is a little bit trickier. So first let’s go over how to create a C file. This is a simple one, but it will be used in this method: Go to New – Project – Win32 Console Empty Project – Type File Name – View – Solution Explorer – Source Files – Type Name, C. And when we get there, we’re done. Solution in the solution explorer, right-click the solution explorer, select properties – configuration properties – linker – system – a SUBSYSTEM, the SUBSYSTEM to CONSOLE (\ SUBSYSTEM: the CONSOLE), with respect to ok, this does not need to input, the SUBSYSTEM click on the right side of the blank area, there will be a drop-down options, then click “ok” to continue to write files, continues to run, you will find that yi, amazing.
The advantage of the third method is that it is more cross-platform. If your computer has this problem and someone else doesn’t, it will inevitably run wrong. But the disadvantage of this is that every time you write a file you have to change it.
I hope I can help you.
Now, here are three ways to do it:
The first two, you probably know.
1 & gt; That’s when return 0; I’m going to do a getchar (); Getchar is waiting for input, so it effectively stops the result screen running;
2 & gt; Similar to the first method, in return 0; Pause a system(“pause”); The statement;
3 & gt; This is a little bit trickier. So first let’s go over how to create a C file. This is a simple one, but it will be used in this method: Go to New – Project – Win32 Console Empty Project – Type File Name – View – Solution Explorer – Source Files – Type Name, C. And when we get there, we’re done. Solution in the solution explorer, right-click the solution explorer, select properties – configuration properties – linker – system – a SUBSYSTEM, the SUBSYSTEM to CONSOLE (\ SUBSYSTEM: the CONSOLE), with respect to ok, this does not need to input, the SUBSYSTEM click on the right side of the blank area, there will be a drop-down options, then click “ok” to continue to write files, continues to run, you will find that yi, amazing.
The advantage of the third method is that it is more cross-platform. If your computer has this problem and someone else doesn’t, it will inevitably run wrong. But the disadvantage of this is that every time you write a file you have to change it.
I hope I can help you.
Read More:
- Three solutions to flash back of program running result box under vs
- Some solutions to the problem of windows flashback after vs running
- The problem of running result window flash of vs2015
- Three solutions to command line flashback in VS
- C language — to solve the problem of program flashback when programming (in VS)
- In vs programming, the code of Ctrl + F5 is flashback
- Solution of vs program flashback problem
- Two lines of code to solve your vs flashback problem
- Vs output flashback
- The perfect solution of VS2010 console program running in a flash
- CSS remove the blue box after button click
- Prevent flashback after running code in VC 6.0
- Solution to the flash of running result of dev C / C + +
- The problem of black box flash away in vs2019 debugging
- Solution for flash back of vs2015 running interface
- There are three ways to deal with the problem of vs (Visual Studio) 2017 flashback. I feel that none of them is the fundamental solution.
- WordPress: How to Remove the directory name in the link
- Invalidation of margin top property of nested box in CSS style box
- Vs debug window flashback
- Solution to the flashback of visual studio output window