Could I ask you to keep your other post going? It's about the same subject / code. The trouble is you might get replies to both of them, with respondents saying the same things (perhaps not realising the other thread even exists) - which is ultimately a waste of time for the respondents - especially if someone does a long detailed reply.
There is also potential for there to be different but similar code posted in each topic, which is another source of confusion, and ultimately a time waster as well.
I am not trying to be really stern or anything, it's just some good advice for the future :+)
okok, I am so sorry about that. i have been struggled with this problem for few day. just hoping this problem can be solved as soon as possible. i appreciate everyone's help. Thank you. i will be careful about that next time
I am guessing you are trying to do a snake game in the console? I am not sure how to do this without any libraries that handle events, so what I would do is learn SDL or SFML and use their event handlers, also, I would just do the whole thing with GUI because... why not? But if you insist on doing it in the console, you can still use the event handler libraries from a graphics library.