int main() { int nSelection = -1; printf("\n"); printf("欢迎进入计费管理系统\n"); do{ outputMenu();//输出系统菜单 scanf("%d",&nSelection);//输入菜单项编号 switch(nSelection){ case 1:{ add();// printf("添加卡\n"); break; } case 2:{ query();//printf("查询卡\n"); break; } case 3:{ logon();// printf("上机\n"); break; } case 4:{ settle();//printf("下机\n"); break; } case 5:{ addMoney();//printf("充值\n"); break; } case 6:{ refundMoney();//printf("退费\n"); break; } case 7:{ printf("查询统计\n"); break; } case 8:{ annul();//printf("注销卡\n"); break; } case 0:{ exitApp(); break; } default:printf("输入菜单序号错误!请选择(0~8)\n");break; } }while(nSelection != 0); system("pause"); return 0; }
inline void Assembler::bp( Condition c, bool a, CC cc, Predict p, address d, relocInfo::relocType rt ) { v9_only(); insert_nop_after_cbcond(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(bp_op2) | branchcc(cc) | predict(p) | wdisp(intptr_t(d), intptr_t(pc()), 19), rt); has_delay_slot(); }
inline void Assembler::br( Condition c, bool a, address d, relocInfo::relocType rt ) { v9_dep(); insert_nop_after_cbcond(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(br_op2) | wdisp(intptr_t(d), intptr_t(pc()), 22), rt); has_delay_slot(); }
inline void Assembler::bpr( RCondition c, bool a, Predict p, Register s1, address d, relocInfo::relocType rt ) { v9_only(); insert_nop_after_cbcond(); cti(); emit_data( op(branch_op) | annul(a) | cond(c) | op2(bpr_op2) | wdisp16(intptr_t(d), intptr_t(pc())) | predict(p) | rs1(s1), rt); has_delay_slot(); }