You mean like converting a character into a usable input? Like pressing 'Q' to get "Quit game" and whatever? My knowledge of <stdio.h> is better than my knowledge of <iostream>, so I'm sorry if it seems too oldschool.

Im sorry if this have confused you, but what I meant is that I used that example for my main menu, however in the game its about dices and I want it so when they are asked to throw a dice you can chooce: Y/N, I got an else to fix it if y ou type in something else.
However I thought a similar one to my main would help me, expecilly as if I type in YY or NN or AQ (More than ONE wrong letter) it bugs up and goes into the other ones turn.

I simply want a way too:
Check if the inputed char is either of Y N y n else it will reset the char and reask the question.
This can be achieved with a while, however I need the proper programming words for it.
In int it is:

if( cin.good() && mainval >=1 && mainval <=3 ) {
break; (If the int is an int and the choice is 1 or 3 or inbetwen then it breaks the while and it continues to next, else it resets)
}
cin.clear();
cin.ignore( INT_MAX, '\n' );
However here is the words for resetting.
However the INT_MAX should be changed, to CHAR_MAX ??

The reason is so that I can have the maximum and minimum on the dice changeable.
Unfortunly it complains on:
`minpoints' undeclared (first use this function)
`maxpoints' undeclared (first use this function)
However I have declared that int minpoints = 1, maxpoints = 6 in a int earlier.

1. You're not using a char variable, you're using an integer variable. Integers are strictly numerical.

2. Character variables can only hold 1 character. This is due to size limitation of the variable. You will need an array characters to accept input with more than one character.

If this sounds a bit over your head then don't worry about it, just ignore this part for now, your class should cover all that stuff.

The reason is so that I can have the maximum and minimum on the dice changeable.
Unfortunly it complains on:
`minpoints' undeclared (first use this function)
`maxpoints' undeclared (first use this function)
However I have declared that int minpoints = 1, maxpoints = 6 in a int earlier.

Variables are function specific, meaning that unless you:
1.Used the old variables as parameters for the function
or
2.Declared the variables globally. (not the best option)

Your variables will not exist in this new function. Have you learned about function parameters yet?

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...