Global Moderator

#include <iostream>
using std::cout;
using std::cin;
using std::string;

class Dog {
	public:

	string name;
	string breed;
	int age;

	void setInfo(string dogName, string dogBreed, int dogAge) {
		name = dogName;
		breed = dogBreed;
		age = dogAge;
	}
};

int main() {
	Dog dog;
	dog.setInfo("test", "Boxer", 14);
	cout << "Name: " << dog.name << " | Breed: " << dog.breed << " | Age: " << dog.age << '\n';
	return 0;
}