- #include <iostream> 
- #include<string.h> 
- class Ficha 
- { 
- private: 
- char nombre[10]; 
- char colores[4]; 
- int a; 
-   
- public: 
- char *GetFichxa() 
- { 
-     strcpy(nombre,"pedro"); 
-   
- return nombre; 
- } 
- }; 
-   
- int main(void) 
- { 
-   
- Ficha nombreficha; 
-   
- std::cout << nombreficha.GetFichxa() << std::endl; 
-   
- return 0; 
- } 
- } 
-