Answer to Question #30927 in C++ for Jake

Question #30927
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
Expert's answer

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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS