Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Fleeting handling of the DOS interface of VS and Dev running results

2025-02-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report