Advertisement
CaptainManiac999

main.cpp

Sep 25th, 2020
1,185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #include <iostream>
  2. #include "company.h"
  3. #include "collaborators.h"
  4. #include<string>
  5. #include<vector>
  6. using namespace std;
  7.  
  8. int main() {
  9.    
  10.     Collaborators col1;
  11.     col1.input();
  12.     col1.get();
  13.     Collaborators col2;
  14.     col2.input();
  15.     col2.get();
  16.     cout<<(col1<col2)<<endl;
  17.     cout<<(col1>col2)<<endl;
  18.     vector<Collaborators> compmems;
  19.     compmems.resize(2);
  20.     compmems[0] = col1;
  21.     compmems[1] = col2;
  22.     Company com1 = *new Company("String Inc.",2,compmems);
  23.     cout<<com1<<endl;
  24.     Company com2;
  25.     com2.input();
  26.     cout<<com2<<endl;
  27.     return 0;
  28. }
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement