A library for keeping metric records
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#include <iostream>
|
|
using namespace std;
|
|
|
|
class car {
|
|
public:
|
|
string brand;
|
|
int year;
|
|
};
|
|
|
|
int main() {
|
|
cout << "Hello World! \n\n";
|
|
|
|
car car_obj_1;
|
|
car_obj_1.brand = "Mercedes";
|
|
car_obj_1.year = 2010;
|
|
|
|
cout << car_obj_1.brand << " " << car_obj_1.year << "\n";
|
|
|
|
return 0;
|
|
}
|
|
|