I have this simple program :
#include <iostream>
#include <windows.h>
using namespace std;
double *p;
int i;
int main () {
for (i=0;i<10000000;i++) p=new double;
Sleep(10000);
return 0;
}
I can't figure out why the windows task manager is indicating that it uses ~548mb.
Shouldn this use like ~(10000000*8byte)/1024^2=76.3mb
Maybe I should go to sleep?

New Topic/Question
Reply




MultiQuote





|