I am having trouble with a program I am trying to write. Basicially I have a 2 sets of 9 "if statements". These if statements give me the parameters for 3 functions. The problem I am having is that the I am getting errors that are telling me that the parameters for my function are not defined. I am guessing that the function cant see into the "if statements" when I am trying to debug. Unfortunately placing the functions inside the "if statements" is not an option as the program would be very slow, as there is alot of different combinations from the "if statement". Also there is 26 parameters in each function and 16 of these parameters are arrays, so saving to text file and reading seems very complex. My friend, a java programmer, sugested I should use "static variables" but as I am new to C++ I am having trouble making sense of how I could implement "static variables" for my problem. Sorry if this all seems abit vague. Any help would be greatly appreciated, at this stage I'm in serious need of sleep :) thanks.