Visual 2015 C ++程序未运行,否认符号问题?

时间:2016-01-20 02:17:56

标签: c++ visual-studio visual-studio-2015

刚开始用C ++编程,我安装了Visual 2015.我一直试图运行一个简单的" Hello World"程序,但我得到以下内容:

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Users\(user)\Documents\Visual Studio 2015\Projects\ConsoleApplication1\Debug\ConsoleApplication1.exe'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Symbols loaded.

'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel32.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\KernelBase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\vcruntime140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\msvcp140d.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\ucrtbased.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\advapi32.dll'. Symbols loaded.

'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\msvcrt.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sechost.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\rpcrt4.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded 'C:\Windows\SysWOW64\sspicli.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\cryptbase.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\bcryptprimitives.dll'. Symbols loaded.
'ConsoleApplication1.exe' (Win32): Loaded
'C:\Windows\SysWOW64\kernel.appcore.dll'. Symbols loaded.

The thread 0x2714 has exited with code 0 (0x0).
The thread 0x748 has exited with code 0 (0x0).
The thread 0xc24 has exited with code 0 (0x0).
The program '[3496] ConsoleApplication1.exe' has exited with code 0 (0x0).

我不知道这是为了什么。控制台显示我的输出一点,然后它关闭并显示整个消息。我已经在互联网上搜索了但是我没有得到可靠的答案。

1 个答案:

答案 0 :(得分:1)

好像你的程序运行良好:

  

线程0x2714已退出,代码为0(0x0)。
线程为0x748   已退出代码0(0x0)。
线程0xc24已退出   代码0(0x0)。
程序'[3496] ConsoleApplication1.exe'具有   退出代码0(0x0)。

第一部分是关于启动程序并加载所有必需的dll。最后一部分表示线程和程序退出时代码为0x0,这意味着没有错误。

您可能需要在某处放置断点 F9 ,暂停程序,或在控制台应用程序中放置getch();(需要:#include <conio.h>)。

当程序在调试模式下启动时( F5 ),控制台显示此输出,在没有调试输出的情况下启动它,使用 Ctrl-F5 (菜单调试/无需调试即可启动。