We can't answer that; or even begin to - we can't see the code, we can't see your screen, we can't see your friend's screen, we can't access your HDD, and we can't read either of your minds!
You and your friend need to learn how to report a problem, and how to ask a question: at the moment, you have broken down in the middle of nowhere, called the garage (us) and said "It don't work. My friend says it the bit which goes round" and put the phone down.
How long do you think it will be until the garage arrives with the right parts to fix your car?
Try reading here:
Tips for asking technical questions that result in fast, useful solutions | Opensource.com[
^] and then think to yourself "how much did my friend actually tell me? What symptoms did it show? Why does he think it's 'because of getch()'?"
If he didn't give you any real info, what makes you think that anyone else can help you with even less?