Native' has exited with code 0 (0x0). 求解决方法
这篇帖子http://social.msdn.microsoft.com/Forums/zh-CN/Vsexpressvc/thread/7ddb91e4-f8c7-465c-8385-c31521bbc368
三个方法我都试过,还是没有结果。(The two ways are
system("pause");
or
printf("Press any key to continue...\n");
_getch();
)
_________________
程序:
#include <iostream>
#include <iomanip>
#include <cstdlib>
using namespace std;
const int N_TRIALS = 10;
int main(){
cout <<" on this computer, RAND_MAX is " <<RAND_MAX<<endl;
cout<<"the first " << N_TRIALS<<" calls to rand:" << endl;
for (int i = 0; i<N_TRIALS;i++)
{
cout << setw(10) <<rand() <<endl;
}
system("pause");
return 0;
}
————————————————————————
Debug:
'text.exe': Loaded 'C:\Users\weizhi\Documents\Visual Studio 2008\Projects\text\Debug\text.exe', Symbols loaded.
'text.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll'
'text.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll'
'text.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll'
'text.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll', Symbols loaded.
The program '[2804] text.exe: Native' has exited with code 0 (0x0).
求人指导。刚入门VC++ 2008