buffer when I put only integers(let's say 2039), it buffers until I put F7(row should be a character,should be "A6","F10"), then after I enter a character and an integer )it displayed "bad input" again, if I only enter a character first it buffers until I input an int(let's say, I cin f, then it waits until I input 10), which is working...
Oh, row is a char and col is an int? Well, 2 in 2039 is a perfectly valid char. If you want it to fail, add an isalpha(row) condition. Though how do you expect a[row][col] to work then ?
the '*' is the initialized value to the array, after inserting row and column the particular array will change to a 'X' or 'O'. I want to detect any faulty values inserted or inserting row and column which is already 'X' or 'O' which should not be changed anymore..