20 lines
400 B
C++
20 lines
400 B
C++
#include "car.h"
|
|
#include <cstring>
|
|
|
|
int main() {
|
|
// create a new car and store it in the variable 'a'
|
|
car a;
|
|
// set some data for that car
|
|
a.manufacturer = "Benz";
|
|
a.model = "Velo";
|
|
|
|
// do the same for a second car
|
|
car b;
|
|
b.manufacturer = "Ford";
|
|
b.model = "Model T";
|
|
|
|
// use a function of the car class to print out the information
|
|
a.print_info();
|
|
b.print_info();
|
|
}
|