20 lines
299 B
C++
20 lines
299 B
C++
#include <iostream>
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
struct dog {
|
|
int age;
|
|
int weight;
|
|
string color;
|
|
string name;
|
|
};
|
|
|
|
int main() {
|
|
dog atlas;
|
|
atlas.age = 7;
|
|
atlas.weight = 77;
|
|
atlas.color = "black";
|
|
atlas.name = "Atlas";
|
|
cout << atlas.color << endl;
|
|
}
|