#include<iostream>
using namespace std;
class Stock
{
public:
Stock(string x,int y=1000,double z=8.98);
void printf()
{
cout<<"stockcode:"<<stockcode<<" quantity:"<<quantity<<" price:"<<price<<endl;
}
private:
string stockcode;
int quantity;
double price;
};
Stock::Stock(string x,int y,double z)
{
stockcode=x;
quantity=y;
price=z;
}
int main(){
Stock a("600001",3000,5.67),b("600001");
a.printf();
b.printf();
return 0;
}