📄 stock.h
字号:
#ifndef _STOCK_H
#define _STOCK_H
struct Stock
{
string symbol;
string exchange;
double price;
int shares;
Stock()
: symbol("dummy"), exchange("none"),
price(0.0), shares(0)
{ }
Stock(const string& n, const string& xc,
double p, int ns)
: symbol(n), exchange(xc),
price(p), shares(ns)
{ }
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -