>>can someone show me an example of how you would initiate a variable.
int variable = 0; //declare and initialize the variables
>>how you would fix a undeclaired identifiers.
an undeclaried identifier means that you used a variables that has not
been declared. For example :
int n = 1;
int m = 2;
sum = n + m; //error indeclared identifier
The way to solve this problem is to declare the variable. In the above
code, you need to declare the variable sum. So the correct code should be :
int n = 1;
int m = 2;
int sum = n + m; //notice the "int sum" part. Thats the declaring the variable part.