This repository has been archived on 2026-03-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
pants/cpp/structs.cpp
2026-03-18 00:46:30 -07:00

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;
}