I want the user to use the four cursors up,down,right,left.
i tried to use getch() but it didnt work because the four have the same ASCII code which is 224, so i cant diffrentiate between them
plz any one tell me how to make the user use them
aam and another thing
i want what i display on the screen to be bold
like DANI WEB How can i do it
plz reply me
thnx
dooda man
-3
Newbie Poster
Recommended Answers
Jump to PostTry something like this:
#include <stdio.h> #include <conio.h> /* System dependent key codes */ enum { KEY_ESC = 27, ARROW_UP = 256 + 72, ARROW_DOWN = 256 + 80, ARROW_LEFT = 256 + 75, ARROW_RIGHT = 256 + 77 }; static int get_code ( void ) { …
All 3 Replies
Reply to this topic
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.