Click here to Skip to main content
15,891,777 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
thats the broker header
C++
#include <iostream>
using namespace std;
 
class broker{
private:
	int id;
	string name;
	int brockageid;
	broker();
public:
	void sell(client exchanges);
	void buy(client exchanges);
};


and thats is the cpp file
C++
#include"broker.h"
#include <iostream>
using namespace std;

broker::broker(){
	id = 201156;
	name = "-";
	brockageid = 211105;
	cout << "broker name is";
}

void broker ::sell(client exchanges){
	cout << "exchanges sold ";
}

void broker::buy(client exchanges){
	cout << "exchanges bought";
}
Posted
Updated 19-Nov-14 2:46am
v2
Comments
den2k88 19-Nov-14 8:41am    
Can you expand? It's hard to understand what you're asking. Also please include the code in a preformatted block and please indent it correctly.
Richard MacCutchan 19-Nov-14 8:47am    
You need to subscribe to a broker service to get prices and perform transactions.
KarstenK 19-Nov-14 9:20am    
i recommand you an more explicit constructor
broker( int in_id, string in_name, int in_brokerageid)

and function
bool wantsBigBonusForBetrayingTheCustomers()
{
return TRUE;
}

;-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900