exploit

هیچ وقت برای تازه شدن دیر نیست!

exploit

هیچ وقت برای تازه شدن دیر نیست!

تابع delline

#include <stdlib.h>
int main(void)
{
   clrscr();
   textcolor(12);
   cprintf("The function DELLINE deletes the line containing the\r\n");
   cprintf("cursor and moves all lines below it one line up.\r\n");
   cprintf("DELLINE operates within the currently active text\r\n");
   cprintf("window.  Press any key to continue . . .");
   gotoxy(1,2);
/* Move the cursor to the second line and first column */   getch();

   delline();

   getch();
   return 0;
}

تابع insline

#include <stdlib.h>int main(void)
{
   clrscr();
   textcolor(12);
   cprintf("The function DELLINE deletes line containing the\r\n");
   cprintf("cursor and moves all lines below it one line up.\r\n");
   cprintf("DELLINE operates within the currently active text\r\n");
   cprintf("window.  Press any key to continue . . .");
   gotoxy(1,2);
/* Move the cursor to the second line and first column */
  
getch();

   delline();

   getch();
   return 0;
}

تابع textmode

4 . textmode : این تابع نوع نمایش text در صفحه نمایش را کنترل می کند . مقادیر قابل پذیرش این تابع را در جدول زیر مشاهده می کنید .

ثابت
مقدار عددی
نوع حالت
LASTMODE
-1
Previous text mode
40 columns
BW40
0
Black and white
40 columns
C40
1
Color
80 columns
BW80
2
Black and white
80 columns
C80
3
Color
80 columns
MONO
7
Monochrome
43 columns
C4350
64
EGA and VGA
50 columns

:: چگونگی عملکرد این تابع را میتوانید در مثال زیر ببینید :

#include <stdlib.h>int main(void)
   {
    clrscr();
    textmode(BW40);
    textcolor(12);
    cprintf("Textmode >>>> (BW40)");
    getch();


    textmode(BW80);
    textcolor(10);
    cprintf("Textmode >>>> (BW80)");
    getch();

    textmode(C40);
    textcolor(11);
    cprintf("Textmode >>>> (C40)");
    getch();

    textmode(MONO);
    textcolor(14);
    cprintf("Textmode >>>> (MONO)");
    getch();

    return 0;
   }

پیادی سازی text در محیط Progress Bar

 for (i = 0;i < 80;i ++)
{
gotoxy (wherex(),21);
cprintf ("کاراکتر مورد نظر");
delay (50);
}