Guest_imported
New member
- Jan 1, 1970
- 0
Hi there peoples,
Excited about Attack of the Clones??? Well I am!
Anyway, heres my problem....
I have accessor functions in a class that return int's to another class as those int's are private
eg:
int Node::getYear()
{
return year;
}
but i am also trying to return an array :
char Node::getDescription()
{
return data;
}
where data - char data[100];
and it gives me that annoying but common error:
"'return' : cannot convert from 'char [100]' to 'char'"
i know what the error means - but the problem is i dont know of another way to return an array .....
Can anyone please help me?? THNX for your time
Excited about Attack of the Clones??? Well I am!
Anyway, heres my problem....
I have accessor functions in a class that return int's to another class as those int's are private
eg:
int Node::getYear()
{
return year;
}
but i am also trying to return an array :
char Node::getDescription()
{
return data;
}
where data - char data[100];
and it gives me that annoying but common error:
"'return' : cannot convert from 'char [100]' to 'char'"
i know what the error means - but the problem is i dont know of another way to return an array .....
Can anyone please help me?? THNX for your time