1) Telling people that they need to build the code themselves to find out what the error is, is lazy and rude. You're asking people to give up their time and effort to help you for free; the onus is on you to do as much as you can to clearly explain the problem, not to expect us to do all the work.
2) What are you trying to do with line 8? That's illegal C++. What would it even mean to try and set a function call to be equal to a value?
you are right mikeyboy...that's all my bad,sr...
about the line 8 i want all i recieve from getch becomes "a" so that i can eassyly see what inside getch()