I'm new to C++. I want to be able to declare a list of variables for a number of years and dollar amounts, etc. ( Year1, year2, etc). I dont want to type this for each variable for the total possible number of years. I tried declaring a variable to reflect the value of a counter.
amount( counter );
At the end of the main program- i tried doing simple math using these variables.
when I tried to compile it- I got error c2064, term does not evaluate to a function. It apparently sees these as a function call.
I dont know how to declare a variable that increments. Used to be able to do this in programming languages of yesterday.
anyhelp much appreciated.