char description[10]; int year,month,day,hour,min,sec; public:
Record() { } Record(char id1[],int mo,double m,char d[]) { strcpy(id,id1); money0=mo; money=m; strcpy(description,d); time_t t; t=time(NULL); tm *T=gmtime(&t); year=T->tm_year+1900; month=T->tm_mon+1; day=T->tm_mday; hour=T->tm_hour+8; min=T->tm_min; sec=T->tm_sec; } int getN() { int j=-1; FILE* fpr=fopen("D://records.txt","rb"); Record re; while(!feof(fpr)) { fread(&re,sizeof(Record),1,fpr); j++; } fclose(fpr); return j; } void times() { cout<<year<<"年"<<month<<"月"<<day<<"日"<<hour<<":"<<min<<":"<<sec<<endl; } void display() { cout<<"================================================================================"<<endl; cout<<id<<": "<<description<<"金额: "<<money0<<" 剩余: "<<money<<endl; times(); cout<<"================================================================================"<<endl; } };
//----------------------------------------------------------------------------------------------------- void main() { system("color 15");
check(); //开过户的可以直接查询,没开的也可以看看密码和帐号是否能用
system("pause"); char j ;
system("color 25"); Jshao();
system("cls"); do {
system("color 75"); system("cls");
cout<<" ★---您好,欢迎进入网上银行管理系统!---★\n";
cout<<"============================================================================
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说教育文库网上银行及其支付管理系统(16)在线全文阅读。
相关推荐: