How to store an object as a RAM in program?

Hi All,

I need your help regarding VC++

chi2 statistical test take lot of time in calculations , i want to store chi2 test values as a RAM in my program and each time i want to search whether it is already calculated or not.

Test formate is like this:
inputs:
(a,b) given (c, d, ........(not fixed, may be zero or one or more than one))

outputs:
bool test, double chi2_value, double P_value.


so, there are two main problems
1- how to store both input variables and output values?
2- how i can implement search on input values? (input variables can change their orders so, search can be done by any order)


Thank you in advance.

Amanullah
what do you mean with
as a RAM
?
Means i want to store these values temporarily in the program. Each time i want to first search in the stored variables. You can say cashing.
hm, variables are always in RAM aka memory.

Maybe you want them in a global fashion rather than local? Then put the keyword static in front of the variables that should hold the data during the whole runtime.
Topic archived. No new replies allowed.