Skip to content

Instantly share code, notes, and snippets.

@hueniverse hueniverse/car.cpp
Created Apr 19, 2018

Embed
What would you like to do?
Build a Car in C++
class Car {
private:
void top () {
printf(" _______________________");
printf(" / | \");
  printf(" / | \");
  printf(" / | \");
  printf(" / | \");
  printf(" / | \");
  printf(" / | \");
  printf(" /___________________|________________\__________");
  printf(" ____________/ \");
  printf(" / \");
  printf(" / \");
};
void bottom () {
  printf(" / |");
  printf(" /  , — — — — -,  , — — — — --, |=====");
  printf("| / ______ \ / _______ \ |=====");
  printf("| / / \ \ / / \ \ |");
  printf(" \_____/ / \ \_____________________/ / \ \____|");
  printf(" / | / |");
  printf(" | | | |");
  printf(" | / | /");
  printf(" \ / \ /");
  printf(" \_______/ \_______/");
  };
public:
void drive () {
  top();
  bottom();
  };
};
@Nikit-Singh

This comment has been minimized.

Copy link

commented Apr 19, 2018

What's the mileage though? xD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.