Answer to Question #30927 in C++ for Jake
List all the stocks. (Symbol, company, price)
#include <iostream>
#include <string>
using namespace std;
class CStock
{
public:
CStock(void);
CStock(string c_symbol; string c_company, double c_price);
~CStock(void);
double getPrice();
void setPrice(double c_price);
friend istream& operator >> (istream& input, CStock& C);
friend ostream& operator << (ostream& output, CStock& C);
string symbol;
string company;
private:
double price;
};
CStock stock_accounts[15];
0
Answer in progress...
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment