adventuretimeh

testclassebici

Jan 25th, 2021
691
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /* run this program using the console pauser or add your own getch, system("pause") or input loop */
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. #include "bicycle.h"
  8. int main() {
  9.  // Create two different Bicycle objects
  10.  Bicycle bike1;
  11.  Bicycle bike2;
  12.  string a;
  13.  // Invoke methods on those objects
  14.  bike1.changeCadence(50);
  15.  bike1.speedUp(10);
  16.  bike1.changeGear(2);
  17.  bike1.setbrand("olmo");
  18.  bike1.printStates();
  19.  bike2.changeCadence(40);
  20.  bike2.speedUp(20);
  21.  bike2.changeGear(3);
  22.  bike2.setbrand("gimondi");
  23.  bike2.printStates();
  24.  cout << "fine programma ";
  25. }
  26.  
RAW Paste Data