zoukankan      html  css  js  c++  java
  • 程序“[1344] MyProject2.exe: 本机”已退出,返回值为 0 (0x0) 错误解决方法

    笔记本用的是win7 64位的系统,没法再用以前的VC6.0了,所以就用了VS2010,在编写窗口程序的时候,运行的时候总是一闪而过,并输出以下的信息,还真是麻烦呀!

    “MyProject2.exe”: 已加载“D:\vc练习\MyProject2\Debug\MyProject2.exe”,已加载符号。
    “MyProject2.exe”: 已加载“C:\Windows\SysWOW64\ntdll.dll”,Cannot find or open the PDB file
    “MyProject2.exe”: 已加载“C:\Windows\SysWOW64\kernel32.dll”,Cannot find or open the PDB file
    “MyProject2.exe”: 已加载“C:\Windows\SysWOW64\KernelBase.dll”,Cannot find or open the PDB file
    “MyProject2.exe”: 已加载“C:\Windows\SysWOW64\msvcp100d.dll”,已加载符号。
    “MyProject2.exe”: 已加载“C:\Windows\SysWOW64\msvcr100d.dll”,已加载符号。
    程序“[1344] MyProject2.exe: 本机”已退出,返回值为 0 (0x0)。


    我的代码如下:

    #include <iostream>
    using std::cout;
    using std::endl;

    #include "stdlib.h "

    #include <iomanip>
    using std::setw;

    #include <cstdlib>
    using std::rand;

    int main()
    {
    for(int counter=1;counter<=20;counter++)
    {
    //从1到6数字中随机选取,并输出
    cout<<setw(10)<<(1+rand()%6);

    if(counter%5==0)
    cout<<endl;
    }
    return 0;
    }

    后来上网查了一下解决方法,只要在 return 0前面加上 system("pause"); 这行代码以后就没有问题了。

  • 相关阅读:
    完美解决ListView中事件ItemCreated中使用ClientID导致插入数据失败
    cookie 和session 的区别详解
    ref与out之间的区别整理
    showModalDialog介绍
    meta元素
    [转] Spring Boot特性
    [转] Spring Boot 揭秘与实战(二) 数据存储篇
    Jsch初步
    如何通俗的解释交叉熵与相对熵
    pip安装时的异常,找不到lib2to3\Grammar.txt
  • 原文地址:https://www.cnblogs.com/hxxy2003/p/2233324.html
Copyright © 2011-2022 走看看