what code can i use so that if the coodinates of a mouse represented by symbol @ goes over coodinates of apples representedby symbols & and makes the & disappear on the grid?
im thinking which would be more effiecient, the if or switch statement

Well in the absence of anything useful to base such a momentous decision on, I'll say an "if" statement.

Are you on a console? If so, I don't think there's a good, definite way to do that (though I could be wrong).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.