要闻

当前位置/ 首页/ 要闻/ 正文

unexpected kernel mode trap蓝屏怎么解决(unexpected)

分成几个文件是可以的。

只是在Stock.h里面,"#include "需要加上"using namespace std;",不然string的定义会有问题。

不用namespace的话需要把string写成: std::string。

另外,在Stock.cpp里面的定义有点问题:double getPreviousClosingPrice() //应该是Stock::getPreviousClosingPrice{ return previousClosingPrice;}double getCurrentPrice() //应该是Stock::getCurrentPrice{ return currentPrice;}。

免责声明:本文由用户上传,与本网站立场无关。财经信息仅供读者参考,并不构成投资建议。投资者据此操作,风险自担。 如有侵权请联系删除!