网上银行及其支付管理系统(16)

2021-02-21 16:37

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<<"============================================================================


网上银行及其支付管理系统(16).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:现场文明施工、环境卫生管理制度

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: