tominator
12-10-2004, 06:28 PM
say you have an array in C++
array[ 9 ];
if the values of 0 through 4 in the array are only suppose to contain 1's entered by the user and 5 through 9 can only contain 2's....how do u stop the user from entering a 2 in 0 through 4 and a 1 in 5 through 9?
array[ 9 ];
if the values of 0 through 4 in the array are only suppose to contain 1's entered by the user and 5 through 9 can only contain 2's....how do u stop the user from entering a 2 in 0 through 4 and a 1 in 5 through 9?