| | |
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
| Thread Tools | Search this Thread |
#include * append array arrays asterisks bash binarysearch calculate changingto char character cm copyimagefile creafecopyofanytypeoffileinc createprocess() database directory dynamic execv feet fgets file floatingpointvalidation fork forloop framework function getlogicaldrivestrin givemetehcodez global grade gtkwinlinux hacking histogram ide include incrementoperators input intmain() iso kernel keyboard kilometer km license linked linkedlist linux list lists locate looping loopinsideloop. lowest matrix meter microsoft mqqueue number oddnumber odf opensource openwebfoundation overwrite owf pdf performance pointer posix probleminc process program programming radix recursion recv recvblocked research reversing scripting segmentationfault sequential single socket socketprogramming standard strchr string systemcall testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi





