亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? a project of bank.cpp

?? For about Banking system. I copy from CodeProject.com.
?? CPP
?? 第 1 頁 / 共 3 頁
字號:
//**********************************************************
//	PROJECT BANKING

//**********************************************************

//**********************************************************
//	BY MUHAMMAD AWAIS RAZA
//      Project For 2nd Smester
//**********************************************************

#include <iostream.h>
#include <fstream.h>
#include <process.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <ctype.h>
#include <conio.h>
#include <dos.h>


//**********************************************************
// THIS CLASS CONTAINS FUNCTIONS RELATED TO DRAW BOX ETC.
//**********************************************************

class shape
{
	public :
			void line_hor(int, int, int, char) ;
			void line_ver(int, int, int, char) ;
			void box(int,int,int,int,char) ;
} ;


//**********************************************************
// THIS CLASS CONTROL ALL THE FUNCTIONS IN THE MENU
//**********************************************************

class control
{
	public :
			void main_menu(void) ;
			void help(void) ;
	private :
			void edit_menu(void) ;
} ;


//**********************************************************
// THIS CLASS CONTAINS FUNCTIONS RELATED TO INITIAL DEPOSIT
//**********************************************************

class initial
{
	public :
			void add_to_file(int, char t_name[30], char t_address[60], float) ;
			void display_list(void) ;
			void delete_account(int) ;
			void update_balance(int, float) ;
			void modify(void) ;
			int  last_accno(void) ;
			int  found_account(int) ;
			char *return_name(int) ;
			char *return_address(int) ;
			float give_balance(int) ;
			int  recordno(int) ;
			void display(int) ;
	private :
			void  modify_account(int, char t_name[30], char t_address[60]) ;
			void  box_for_list(void) ;

			int   accno ;
			char  name[30], address[60] ;
			float balance ;
} ;


//**********************************************************
// THIS CLASS CONTAINS FUNCTIONS RELATED TO TRANSACTIONS
//**********************************************************

class account
{
	public :
			void new_account(void) ;
			void close_account(void) ;
			void display_account(void) ;
			void transaction(void) ;
			void clear(int,int) ;
	private :
			void  add_to_file(int, int, int, int, char, char t_type[10], float, float, float) ;
			void  delete_account(int) ;
			int   no_of_days(int, int, int, int, int, int) ;
			float calculate_interest(int, float) ;
			void  display(int) ;
			void  box_for_display(int) ;

			int   accno ;
			char  type[10] ;    // Cheque or Cash       //
			int   dd, mm, yy ;  // Date                 //
			char  tran ;	    // Deposit or Withdraw  //
			float interest, amount, balance ;
} ;



//**********************************************************
// FUNCTION TO DRAW HORIZONTAL LINE
//**********************************************************

void shape :: line_hor(int column1, int column2, int row, char c)
{
	for ( column1; column1<=column2; column1++ )
	{
		gotoxy(column1,row) ;
		cout <<c ;
	}
}


//**********************************************************
// FUNCTION TO DRAW VERTICAL LINE
//**********************************************************

void shape :: line_ver(int row1, int row2, int column, char c)
{
	for ( row1; row1<=row2; row1++ )
	{
		gotoxy(column,row1) ;
	    cout <<c ;
	}
}


//**********************************************************
// FUNCTION TO DRAW BOX LINE
//**********************************************************

void shape :: box(int column1, int row1, int column2, int row2, char c)
{
	char ch=218 ;
	char c1, c2, c3, c4 ;
	char l1=196, l2=179 ;
	if (c == ch)
	{
		c1=218 ;
		c2=191 ;
		c3=192 ;
		c4=217 ;
		l1 = 196 ;
		l2 = 179 ;
	}
	else
	{
		c1=c ;
		c2=c ;
		c3=c ;
		c4=c ;
		l1 = c ;
		l2 = c ;
	}
	gotoxy(column1,row1) ;
	cout<<c1 ;
	gotoxy(column2,row1) ;
	cout <<c2 ;
	gotoxy(column1,row2) ;
	cout <<c3 ;
	gotoxy(column2,row2) ;
	cout <<c4 ;
	column1++ ;
	column2-- ;
	line_hor(column1,column2,row1,l1) ;
	line_hor(column1,column2,row2,l1) ;
	column1-- ;
	column2++ ;
	row1++ ;
	row2-- ;
	line_ver(row1,row2,column1,l2) ;
	line_ver(row1,row2,column2,l2) ;
}


//**********************************************************
// FUNCTION TO DISPLAY MAIN MENU AND CALL OTHER FUNCTIONS
//**********************************************************

void control :: main_menu(void)
{
	char ch ;
	while (1)
	{
		clrscr() ;
		shape s ;

		s.box(10,5,71,21,219) ;
		s.box(9,4,72,22,218) ;

		textcolor(BLACK) ;
		textbackground(YELLOW) ;
		gotoxy(32,21);cprintf("    MUHAMMAD AWAIS RAZA  ");
		gotoxy(32,25);cprintf("  LOGIC EYE DEVELOPERS    ");
		 textcolor(CYAN) ;
		textbackground(BLUE) ;
			gotoxy(32,7) ;
		cprintf(" B A N K I N G ") ;
		gotoxy(35,9) ;
		cprintf(" OPTIONS ") ;
		textcolor(YELLOW) ;
		textbackground(BLACK) ;
		gotoxy(30,11) ;
		cout <<"1: SEE ACCOUNT" ;
		gotoxy(30,12) ;
		cout <<"2: LIST OF ACCOUNTS" ;
		gotoxy(30,13) ;
		cout <<"3: TRANSACTIONS" ;
		gotoxy(30,14) ;
		cout <<"4: OPEN NEW ACCOUNT" ;
		gotoxy(30,15) ;
		cout <<"5: EDIT ACCOUNTS" ;
		gotoxy(30,16) ;
		cout <<"6: HELP" ;
		gotoxy(30,17) ;
		cout <<"0: QUIT" ;
		gotoxy(30,19) ;
		cout <<"Enter your choice: " ;
		ch = getche() ;
		if (ch == 27)
			break ;
		else
		if (ch == '1')
		{
			account a ;
			a.display_account() ;
		}
		else
		if (ch == '2')
		{
			initial ini ;
			ini.display_list() ;
		}
		else
		if (ch == '3')
		{
			account a ;
			a.transaction() ;
		}
		else
		if (ch == '4')
		{
			account a ;
			a.new_account() ;
		}
		else
		if (ch == '5')
			edit_menu() ;
		else
		if (ch == '6')
			help() ;
		else
		if (ch == '0')
			break ;
	}
	for (int i=25; i>=1; i--)
	{
		delay(40) ;
		gotoxy(1,i) ; clreol() ;
	}
}


//**********************************************************
// FUNCTION TO DISPLAY EDIT MENU AND CALL OTHER FUNCTIONS
//**********************************************************

void control :: edit_menu(void)
{
	char ch ;
	while (1)
	{
		clrscr() ;
		shape s ;
		s.box(10,5,71,21,219) ;
		s.box(9,4,72,22,218) ;
		textcolor(RED) ;
		textbackground(BLUE) ;
		gotoxy(34,10) ;
		cprintf(" EDIT MENU ") ;
		textcolor(YELLOW) ;
		textbackground(BLACK) ;
		gotoxy(31,12) ;
		cout <<"1: MODIFY ACCOUNT" ;
		gotoxy(31,13) ;
		cout <<"2: CLOSE ACCOUNT" ;
		gotoxy(31,14) ;
		cout <<"0: QUIT" ;
		gotoxy(31,16) ;
		cout <<"Enter your choice: " ;
		ch = getche() ;
		if (ch == 27)
			break ;
		else
		if (ch == '1')
		{
			initial ini ;
			ini.modify() ;
			break ;
		}
		else
		if (ch == '2')
		{
			account a ;
			a.close_account() ;
			break ;
		}
		else
		if (ch == '0')
			break ;
	}
}


//**********************************************************
// FUNCTION TO DISPLAY HELP ABOUT PROJECT
//**********************************************************

void control :: help(void)
{
	clrscr() ;
	textcolor(RED+BLINK) ;textbackground(GREEN);
	gotoxy(18,2); cprintf("  P R O J E C T  B A N K I N G  OF P U N J A B ") ;
	textcolor(BLACK);
	gotoxy(18,4); cprintf(" By- MUHAMMAD AWAIS RAZA  (Logic eye Developers)");
	delay(10) ;
	gotoxy(10,6);  cout <<"In  this  Project  you  can keep  records  of  daily  banking" ;
	delay(10) ;
	gotoxy(10,7);  cout <<"transactions.               " ;
	delay(10) ;
	gotoxy(10,9);  cout <<"    This  program is capable of holding any no. of  accounts." ;
	delay(10) ;
	gotoxy(10,11); cout <<"- In the first option you can see the account of  a  particular" ;
	delay(10) ;
	gotoxy(10,12); cout <<"  person by giving simply the account no. of that person." ;
	delay(10) ;
	gotoxy(10,14); cout <<"- In second option you can see the list of all the accounts." ;
	delay(10) ;
	gotoxy(10,16); cout <<"- Through third option you can operate banking transactions" ;
	delay(10) ;
	gotoxy(10,17); cout <<"  (Deposit/Withdraw)." ;
	delay(10) ;
	gotoxy(10,19); cout <<"- In Fourth option you can open new account." ;
	delay(10) ;
	gotoxy(10,20); cout <<"  (NOTE: Opening amount should not be less than Rs.500/-)" ;
	delay(10) ;
	gotoxy(10,22); cout <<"- In Fifth option you can modify or Delete any of the accounts." ;
	delay(10) ;
	gotoxy(10,24); cout <<"- And the last option is to Quit the PROJECT (Exit to Dos).  " ;
	delay(10) ;
	textcolor(MAGENTA+BLINK) ; textbackground(LIGHTGREEN) ;
	gotoxy(26,30) ; cprintf(" Press any key to continue ") ;
	textcolor(YELLOW) ; textbackground(BLACK) ;
	gotoxy(25,2) ;
	getch() ;
	for (int i=25; i>=1; i--)
	{
		delay(50) ;
		gotoxy(1,i) ; clreol() ;
	}
}



//**********************************************************
// THIS FUNCTION RETURN LAST ACCOUNT NO. IN THE FILE
// INITIAL.DAT
//**********************************************************

int initial :: last_accno(void)
{
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;
	int count=0 ;
	while (file.read((char *) this, sizeof(initial)))
		count = accno ;
	file.close() ;
	return count ;
}


//**********************************************************
// THIS FUNCTION RETURN RECORD NO. OF THE GIVEN ACCOUNT NO.
// IN THE FILE INITIAL.DAT
//**********************************************************

int initial :: recordno(int t_accno)
{
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;
	int count=0 ;
	while (file.read((char *) this, sizeof(initial)))
	{
		count++ ;
		if (t_accno == accno)
			break ;
	}
	file.close() ;
	return count ;
}


//**********************************************************
// THIS FUNCTION DISPLAY THE ACCOUNT FOR GIVEN ACCOUNT NO.
// FROM THE FILE INITIAL.DAT
//**********************************************************

void initial :: display(int t_accno)
{
	shape s ;
	s.box(8,7,73,11,219) ;
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;
	while (file.read((char *) this, sizeof(initial)))
	{
		if (t_accno == accno)
		{
			gotoxy(8,5) ;
			cout <<"ACCOUNT NO. " <<accno ;
			gotoxy(10,8) ;
			cout <<"Name    : "<<name ;
			gotoxy(10,9) ;
			cout <<"Address : " <<address ;
			gotoxy(10,10) ;
			cout <<"Balance : " <<balance ;
			break ;
		}
	}
	file.close() ;
}


//**********************************************************
// THIS FUNCTION RETURN NAME FOR THE GIVEN ACCOUNT NO.
// IN THE FILE INITIAL.DAT
//**********************************************************

char *initial :: return_name(int t_accno)
{
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;
	char t_name[30] ;
	while (file.read((char *) this, sizeof(initial)))
	{
		if (accno == t_accno)
		{
			strcpy(t_name,name) ;
			break ;
		}
	}
	file.close() ;
	return t_name ;
}


//**********************************************************
// THIS FUNCTION RETURN ADDRESS FOR THE GIVEN ACCOUNT NO.
// IN THE FILE INITIAL.DAT
//**********************************************************

char *initial :: return_address(int t_accno)
{
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;
	char t_address[60] ;
	while (file.read((char *) this, sizeof(initial)))
	{
		if (accno == t_accno)
		{
			strcpy(t_address,address) ;
			break ;
		}
	}
	file.close() ;
	return t_address ;
}


//**********************************************************
// THIS FUNCTION RETURN BALANCE FOR THE GIVEN ACCOUNT NO.
// IN THE FILE INITIAL.DAT
//**********************************************************

float initial :: give_balance(int t_accno)
{
	fstream file ;
	file.open("INITIAL.DAT", ios::in) ;
	file.seekg(0,ios::beg) ;

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩亚洲综合在线| 欧美亚洲国产bt| 婷婷成人综合网| 亚洲一区二区三区四区的| 亚洲日本乱码在线观看| 最新成人av在线| 亚洲精品欧美二区三区中文字幕| 国产精品无圣光一区二区| 久久尤物电影视频在线观看| 日韩免费高清视频| 久久久久综合网| 调教+趴+乳夹+国产+精品| 亚洲国产va精品久久久不卡综合| 日韩综合小视频| 男男视频亚洲欧美| 国产精品夜夜爽| 丁香婷婷综合色啪| 色综合天天天天做夜夜夜夜做| 一本大道久久a久久精品综合| 日本道精品一区二区三区| 欧美精品第一页| 26uuu国产一区二区三区| 国产日韩亚洲欧美综合| 最新中文字幕一区二区三区 | 亚洲一区二区欧美| 婷婷久久综合九色综合绿巨人| 奇米四色…亚洲| 高清在线成人网| 欧美日韩一区二区三区四区五区| 日韩欧美二区三区| 国产精品久久网站| 视频一区中文字幕国产| 风间由美性色一区二区三区| 欧美性视频一区二区三区| 久久综合九色综合97婷婷| 亚洲欧洲性图库| 看国产成人h片视频| 成人动漫一区二区在线| 制服丝袜一区二区三区| 国产精品无码永久免费888| 午夜视频一区在线观看| 高清国产一区二区三区| 制服丝袜亚洲播放| 中文字幕在线观看一区| 久久精品国产精品亚洲综合| 日本精品一区二区三区高清 | 一本大道综合伊人精品热热| 日韩精品中文字幕在线一区| 亚洲日本va在线观看| 国产综合久久久久久鬼色| 欧美丝袜丝交足nylons| 国产日韩欧美激情| 美女尤物国产一区| 久久亚洲私人国产精品va媚药| 自拍偷拍亚洲欧美日韩| 国产中文字幕精品| 91精品婷婷国产综合久久性色 | 99re视频精品| 精品国产麻豆免费人成网站| 亚洲不卡一区二区三区| 99国产欧美另类久久久精品| 国产三级一区二区三区| 免费不卡在线观看| 欧美一卡2卡3卡4卡| 午夜视频在线观看一区| 在线中文字幕一区二区| 一区二区三区四区乱视频| 欧美日韩一区二区三区不卡| 国产伦理精品不卡| 99re视频这里只有精品| 欧美一区二区大片| 婷婷激情综合网| 欧美日韩在线电影| 偷拍亚洲欧洲综合| 欧美精品在欧美一区二区少妇| 亚洲一区二区精品视频| 日本精品一区二区三区高清| 亚洲综合在线五月| 麻豆精品一区二区| 久久影音资源网| 6080国产精品一区二区| 99久久777色| 国产乱人伦偷精品视频免下载| 亚洲一区在线免费观看| 亚洲国产日韩在线一区模特| 久久久久综合网| 日韩一区二区三区视频在线| 色综合天天性综合| 成人免费看黄yyy456| 久久精品国产成人一区二区三区 | 大白屁股一区二区视频| 日本少妇一区二区| 亚洲一区二区在线免费观看视频| 久久久三级国产网站| 日韩一区二区三区免费看| 欧美无砖砖区免费| 91网上在线视频| bt7086福利一区国产| 国产一本一道久久香蕉| 激情五月播播久久久精品| 亚洲国产精品欧美一二99| 国产精品福利一区二区| 国产欧美精品日韩区二区麻豆天美| 欧美一级一区二区| 欧美一区二区三区成人| 欧美精品一级二级| 欧美精品国产精品| 91精品麻豆日日躁夜夜躁| 欧美日韩精品一区二区| 欧美高清激情brazzers| 欧美军同video69gay| 欧美性淫爽ww久久久久无| 在线一区二区三区做爰视频网站| 91在线云播放| 色婷婷亚洲婷婷| 欧洲av在线精品| 欧美二区三区的天堂| 欧美一区二区在线免费播放| 欧美一区二区三区免费| 欧美mv和日韩mv国产网站| 精品国产一区二区亚洲人成毛片| 欧美成人女星排行榜| 欧美mv和日韩mv国产网站| 国产亚洲视频系列| 国产精品久久夜| 亚洲国产视频直播| 日韩激情在线观看| 国产永久精品大片wwwapp| 国产精品亚洲成人| 91在线观看下载| 精品视频色一区| 日韩欧美国产一区二区在线播放| 精品黑人一区二区三区久久| 久久精品一区蜜桃臀影院| 国产精品国产三级国产aⅴ入口| 一区二区在线免费| 成+人+亚洲+综合天堂| 99麻豆久久久国产精品免费优播| 色老头久久综合| 日韩欧美综合在线| 中文字幕欧美日韩一区| 一区二区三区不卡视频在线观看 | 日韩黄色免费电影| 久久99精品久久只有精品| 国产91富婆露脸刺激对白| 91行情网站电视在线观看高清版| 欧美一区二区免费观在线| 国产亚洲欧美日韩俺去了| 一区二区在线观看视频在线观看| 天堂久久一区二区三区| 国产成人免费av在线| 在线中文字幕不卡| 久久精品综合网| 亚洲va韩国va欧美va| 国产精品中文欧美| 欧美性色黄大片手机版| 日本一区二区三区在线不卡| 午夜a成v人精品| 99re热视频这里只精品| www国产成人| 亚洲福利视频一区| 丁香网亚洲国际| 日韩欧美不卡一区| 亚洲午夜在线观看视频在线| 国产精品一二三四| 欧美一区二视频| 亚洲一级不卡视频| 91亚洲精品一区二区乱码| 精品美女在线播放| 亚洲自拍偷拍网站| 菠萝蜜视频在线观看一区| 欧美成人vr18sexvr| 性欧美疯狂xxxxbbbb| 91丨porny丨蝌蚪视频| 国产午夜精品一区二区| 久久er99热精品一区二区| 欧美视频你懂的| 亚洲欧美另类图片小说| 成人免费视频播放| 国产亚洲精品7777| 国产在线视频一区二区| 日韩一区二区三区电影 | 亚洲日本免费电影| 国产不卡高清在线观看视频| 日韩精品一区二区三区视频播放 | 日韩成人免费看| 欧美日韩中字一区| 亚洲免费观看在线视频| 不卡影院免费观看| 久久精品视频在线免费观看| 国产在线精品一区二区| 亚洲精品一区二区三区蜜桃下载| 三级在线观看一区二区 | 久久亚洲精品国产精品紫薇| 色狠狠色狠狠综合| 夜夜精品视频一区二区| 色呦呦一区二区三区| 亚洲色图欧洲色图| 一本色道久久综合亚洲91| 亚洲欧美激情在线|