C++ Project on Kon Banega Crorepati (KBC) Quiz - imTegkbc project in c++, kbc c++ project pdf, kbc game project report, crorepati, karodpati kbc, what is c++ language
C++ KAUN BANEGA CROREPATI (KBC)
file.close();
gotoxy(1,row); for(j=1;j<=79;j++) cout<<"="; row++; gotoxy(4,row); cout<<"Total->:"; gotoxy(30,row); //Deposited amount cout<<setw(15) //setwidth <<setprecision(2) //set position of decimal point <<setiosflags(ios::left) //set left justified output <<setiosflags(ios::showpoint) //always show decimal point <<setiosflags(ios::fixed) //set fixed notation for display <<damt; gotoxy(42,row); //Withdraw amount cout<<setw(15) <<setprecision(2) <<setiosflags(ios::left) <<setiosflags(ios::showpoint) <<setiosflags(ios::fixed) <<wamt; gotoxy(66,row); tamt=tamt+pre_balance; //Balance amount cout<<setw(15) <<setprecision(2) <<setiosflags(ios::left) <<setiosflags(ios::showpoint) <<setiosflags(ios::fixed) <<tamt; if(!flag) { gotoxy(4,24); cout<<"Press any key to continue.."; getch(); } } /*Function for creating new account for new customer.*/ void account::new_account(void) { char ch; int i, valid; clrscr(); initial ini; cout<<"<0>=Exit"; int d1,m1,y1; struct date d; //For extractingsystem date getdate(&d); d1=d.da_day; m1=d.da_mon; y1=d.da_year; int t_accno; t_accno=ini.last_accno(); t_accno++; //Append and delete a false record to create primary position in data files if (t_accno==1) { ini.add_to_file(t_accno,"abc","xyz",1.1); ini.delete_account(t_accno); add_to_file(t_accno,1,1,1997,'D',"INITIAL",1.1,1.1,1.1); delete_account(t_accno); } char t_name[30],t[10],t_address[30]; float t_bal=0.0,t_balance=0.0; gotoxy(5,6); cout<<"data: "<<d1<<'/'<<m1<<'/'<<y1; gotoxy(5,8); cout<<"Account No # "<<t_accno; gotoxy(5,10); cout<<"Name :"; gotoxy(5,11); cout<<"Address:"; gotoxy(5,12); cout<<"Name of verifying person :"; gotoxy(5,14); cout<<"initial Deposit:"; do { clear(15,10); clear(5,23); gotoxy(5,23); cout<<"Enter Name of the person"; valid =1; gotoxy(15,10); gets(t_name); strupr(t_name); if(t_name[0]=='0') return; if(strlen(t_name)==0||strlen(t_name)>25) { valid=0; gotoxy(5,23); cprintf("\7 Name should not be greater than 25"); getch(); } } while(!valid); |
|