I remember somewhere on the forums either Salem or Prelude said that you could make you own ANSI getch(); but it was a big learning curve. I was wondering if anyone could give me a couple of hints on how to do this. Thanks
I remember somewhere on the forums either Salem or Prelude said that you could make you own ANSI getch(); but it was a big learning curve. I was wondering if anyone could give me a couple of hints on how to do this. Thanks
I would like to know that coz my getch doesnt work, i think my compiler is screwed up...so it getc();
>I remember somewhere on the forums either Salem or Prelude said that you could make you own ANSI getch(); but it was a big learning curve.
It was probably me. I also mentioned that getting to the goal results in you learning a lot. Of course, if you need it now, one solution is in the FAQ.
My best code is written with the delete key.
So if i ever to make a function --- getch(); --- i would be learning a lot about C?
Actually, I would think you'd be learning a bit about assembly, since you'd probabaly be reading from the keyboard buffer. Then again I'm hardly experienced with C and the only assembly I've done is some 6502 for the NES, so I may be wrong.
I don't know for sure on this but I think there's some sort of union or something similar to with video memory that you can utilize without having to go to assembly.