Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<string>;
- using namespace std;
- class gato
- {
- public:
- int m_peso;
- string m_color;
- string m_nombre;
- };
- int main()
- {
- gato dongato;
- dongato.m_peso = 1;
- dongato.m_color = "Amarillo";
- dongato.m_nombre = "Dongato";
- cout << dongato.m_nombre << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment