blob: 87be70c30dcef8c28e03ee2b68fefe4382729229 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#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;
}
|