How does the RAM work in C++ computing?
In my knowledge that the usefulness of RAM in computing is for storing data such as array. That’s why we need large RAM If the program is large. BUT recently I am confused.
I have 2-PC, one old Toshiba Satellite and a new HP pavilion. Both re-installed with XP pro sp3. By “My Computer/ Properties /General” check them, the memory are: 1.00 GB of RAM and
2.90 GB RAM.
I have a stock program with large 2-dimension array, the 1st array for storing tickers and the 2nd for quotes. Because of large tickers and quotes, it’s sure that it requires large memory/RAM.
Using VC++2008, II run this program in the old, RAM=1 GB, PC, it prompts the small grey/silver window, with ‘Debug’ ‘Send Error Report’ ‘Don’t Send’ three press button, meaning that RAM is not enough to store all the 2-dimension array/variables.
I transferred to run it in the new, RAM=2.9 GB, PC. To my surprise the result is the same: appeared the gray/silver small window the same.
I decrease the size of the 2-dimension variable/array, both PCs are OK.
Repeated experiments showed: both PC have the same ability to store variable/array! CAN
1.0 GB of RAM = 2.90 GB of RAM ???
I am stunned! Could you helped me?