| | |
is it true?!!
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: May 2008
Posts: 10
Reputation:
Solved Threads: 0
i want to make a text programe ,this program supposed to have a text mode and a command mode;
in text mode you can type and whit arrow key change your position
in command mode by typing your comman you can get the results for example:
by typing copy 2 3 5 the program will go to line 2 and then to character 3 and then counts 5 character and copies them in to anoter array (clipboard[][]),
a know that code bellow has lots of problems so i need your help
thank u,
in text mode you can type and whit arrow key change your position
in command mode by typing your comman you can get the results for example:
by typing copy 2 3 5 the program will go to line 2 and then to character 3 and then counts 5 character and copies them in to anoter array (clipboard[][]),
a know that code bellow has lots of problems so i need your help
thank u,
C Syntax (Toggle Plain Text)
void text(char txt[20][4]){ char ch; clrscr(); gotoxy(45,0); printf("text mode"); for(y=0;y<=4;) { for(i=0;i<=20;i++){ ch=getch(); if (ch==13||ch==0) pos(ch); putch(ch); txt[i][y]=ch; }//end of for y=y+1; }//end of outer for } //**************************** void pos(char ch){ if (ch==13){ i=1; y=y+1; gotoxy(i,y); } else if(ch==0){ ch=getch(); if(ch==77){ i=i+1; gotoxy(i,y); } else if(ch==72){ y=y-1; gotoxy(i,y); } else if(ch==80){ y=y+1; gotoxy(i,y); } else if(ch==75){ i=i-1; gotoxy(i,y); } }// end of first else if }
Last edited by Narue; Jul 3rd, 2008 at 8:45 am. Reason: Adde
![]() |
Similar Threads
- Monitor not doing true color anymore (Windows 95 / 98 / Me)
- Else Statement always Returns True (C++)
- help getting !true bool to break out of program (C++)
- Antec True Power 430 Watt PSU (Cases, Fans and Power Supplies)
- Microsoft Changes The Game Plan: Windows 2003 A True NOS? (Windows NT / 2000 / XP)
- cant use acronis true image on windows xp (Windows NT / 2000 / XP)
Other Threads in the C Forum
- Previous Thread: Unable to delete compiled programs?
- Next Thread: error: incompatible types in assignment
Views: 336 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for C
#include adobe ansi array arrays asterisks binarysearch calculate centimeter char command convert copyimagefile cprogramme creafecopyofanytypeoffileinc directory dynamic fflush file fork forloop framework frequency functions getlasterror givemetehcodez grade graphics gtkgcurlcompiling hacking hardware highest homework inches incrementoperators kernel km lazy linked linkedlist linux linuxsegmentationfault list lists locate logical_drives looping loopinsideloop. match matrix microsoft motherboard multi mysql number opendocumentformat opensource owf pattern pdf performance pointer pointers posix problem probleminc process program programming radix recursion recv repetition research scanf scheduling scripting segmentationfault sequential shape socket socketprograming spoonfeeding stack standard string strings structures student systemcall testautomation threads turboc unix user variable voidmain() wab win32 windows.h





