![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
无奈的小心酸
everything is a causal link
QQ:2531817472
展开
-
vs下程序运行结果框闪退的三种解决方案
用VS写c/c++程序,运行结果框总是会一闪而退,根本看不到程序运行的结果,真是令人烦躁,那么现在,告诉大家三个解决方法 方法一:在return 0;语句之前, 加上一个 getchar();语句, 如此,getchar会一直等待输入,程序运行结果框也就正常显示运行结果了。 如下图所示: 方法二:在程序末尾加上语句:system("pause");,再加上头...转载 2018-09-26 09:54:59 · 61357 阅读 · 12 评论 -
vs2013使用hash_map必备的头文件
今天程序要用到hash_map,头文件忘记怎么写,一直提示未定义的标识符hash_map头文件可以这么写#include<iostream>#include<hash_map>using namespace std;using namespace stdext;using stdext::hash_map;void main(){ hash_ma...原创 2018-09-26 17:42:20 · 1752 阅读 · 0 评论