class TSomeClass
{
public :
char Get_Name() ;
bool Set_Name(char Data[20]) ;
private :
char Name[20] ;
} ;
char TSomeClass::Get_Name()
{
return(Name) ;
}
bool TSomeClass::Set_Name(char Data[20]) ;
{
if(strcpy(Name, Data)
{
return(true) ;
}
else
{
return(false) ;
}
}
------------------------
void SomeProcedure()
{
// Local variables
//****************
TSomeClass mySomeClass ;
// Code
//*****
mySomeClass.Set_Name(Some Class Name) ;
// When you leave the function the class will delete itself
}
-------------------------
I think thats how you do it
I''m sure people will blast me if I''m wrong