📄 menu.cpp
字号:
#include <iostream.h>
#include <fstream.h>
#include <iomanip.h>
#include <string.h>
#include <conio.h>
#include <stdlib.h>
#include <time.h>
#include "Stock.h"
#include "GuestStock.h"
#include "Guest.h"
//一级菜单
char Menu0()
{
char sel;
cout<<"***********************欢迎进入个人股票管理系统***********************"<<endl
<<"1.登录"<<endl
<<"2.注册(目前暂无此功能...)"<<endl
<<"3.退出"<<endl
<<"4.关于"<<endl
<<"请选择:"<<endl;
sel = getche();
return sel;
}
char Menu1()
{
char i;
cout<<"请选择你的角色:"<<endl
<<"1.陈书杰"<<endl
<<"2.陆洋"<<endl
<<"3.陈民"<<endl
<<"4.陈丽华"<<endl
<<"5.李宏标"<<endl
<<"6.退出"<<endl;
i = getche();
return i;
}
char Menu1_1()
{
char sel;
cout<<"1.我的账户"<<endl
<<"2.股票交易"<<endl
<<"3.大盘走势"<<endl
<<"4.注销"<<endl
<<"请选择:"<<endl;
sel = getche();
return sel;
}
char Menu1_1_1()
{
char sel;
cout<<"1.按收益排序"<<endl
<<"2.按涨幅大小进行排序"<<endl
<<"3.显示指定时间段内盈亏(此功能目前暂未实现。。。)"<<endl
<<"4.按股票号查询"<<endl
<<"5.返回上一层菜单"<<endl
<<"请选择:"<<endl;
sel = getche();
return sel;
}
char Menu1_1_2()
{
char sel;
cout<<"1.买入股票"<<endl
<<"2.卖出股票"<<endl
<<"3.存入资金"<<endl
<<"4.支取资金"<<endl
<<"5.返回上一层菜单"<<endl
<<"请选择:"<<endl;
sel = getche();
return sel;
}
char Menu1_1_3()
{
char sel;
cout<<"1.按号码排序"<<endl
<<"2.按涨幅排序"<<endl
<<"3.返回上一层菜单"<<endl
<<"请选择:"<<endl;
sel = getche();
return sel;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -