Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MariqnKST.cpp : Defines the entry point for the console application.
- #include <iostream>
- #include <string>
- #include <vector>
- using namespace std;
- class CLaptop{
- protected:
- string m_strProducer;
- int m_iScreenSize;
- public:
- CLaptop(){
- m_strProducer = "Dell";
- m_iScreenSize = 12;
- }
- CLaptop(string m_strProducer1, int m_iScreenSize1){
- m_strProducer = m_strProducer1;
- m_iScreenSize = m_iScreenSize1;
- }
- CLaptop( int m_iScreenSize2){
- m_iScreenSize = m_iScreenSize2;
- }
- CLaptop(const CLaptop& COPY){
- m_strProducer = COPY.m_strProducer;
- m_iScreenSize = COPY.m_iScreenSize;
- }
- string Getm_strProducer3()const{ return m_strProducer; }
- int Geti_iScreenSize3()const{ return m_iScreenSize; }
- ostream& output(ostream& output){
- output << "Producer: " << m_strProducer << "," << "Screen Size" << m_iScreenSize;
- }
- istream& input(istream& input, CLaptop &Lap){
- input >> Lap.m_strProducer >> Lap.m_iScreenSize;
- }
- bool operator=(CLaptop& L){
- }
- bool operator<(CLaptop& First){
- if (this->m_iScreenSize < First.m_iScreenSize)
- return First.m_iScreenSize;
- else
- {
- return m_iScreenSize;
- }
- }
- bool operator==(CLaptop& Right){
- if (this->m_iScreenSize == Right.m_iScreenSize)
- return Right.m_iScreenSize;
- else
- {
- return m_iScreenSize;
- }
- }
- //bool operator<<(CLaptop& L){
- //}
- //bool operator>>(CLaptop& L){
- //}
- };
- class CLaptopShop : public CLaptop{
- public: vector <CLaptop> m_vSales;
- CLaptopShop(vector<CLaptop>laptop)
- {
- m_vSales = laptop;
- }
- CLaptopShop(string m_strProducer1, int m_iScreenSize1){
- m_strProducer = m_iScreenSize1;
- m_iScreenSize = m_iScreenSize1;
- }
- void readin(const ifstream& read){
- }
- void writeTo(const ostream& out){
- }
- void maxSalesByProducer(string& strProducer, int& iNum){
- }
- void maxSalesBySize(int& iScreenSize, int& iNum){
- }
- };
- int main()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement