For some reason, I am having a really wierd problem with a program... It wont let me input an integer. Its part of a function in a somewhat simple battleship game. Here is the start of that function:
It compiles fine, but when I put in that number it crashes... Any sugestions would be great.Code:void playerattack() { int hori; char vert, ship; bool hit; cout<<"Chose horizontal target (1-10): "; cin>>hori; ...