Demo entry 6641308

a

   

Submitted by anonymous on Sep 17, 2017 at 17:45
Language: C++. Code size: 452 Bytes.

class Parts
{
public:
	virtual create()
	explicit Parts(const string& cs)
		: m_partType(cs)
	{
	}

private:
	string m_partType;
};

class Shaft : public Parts
{
	int countofShaftSection;
	vector<ShaftSection *> m_SSList_bottom;
	vector<ShaftSection *> m_SSList_top;
	LCylinder* m_pcylinder;


public:
	Shaft(const string& cs, int countof_shaft_section)
		: Parts(cs),
		  countofShaftSection(countof_shaft_section),
	{
	}
};

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).