initial commit
This commit is contained in:
commit
a7bb7f03c1
20
metrics.cpp
Normal file
20
metrics.cpp
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#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;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user