Re: can we return pointer or struct?
- From: "ben" <benhongh@xxxxxxxxxxx>
- Date: Mon, 16 May 2005 20:50:13 +1000
struct contact
{
string name;
int telephone_number;
string email_address;
//...
};
// to return a pointer
contact* get_my_contact(void);
// to return a struct
contact get_a_copy_of_someones_contact(const string& who);
ben
"boki" <bokiteam@xxxxxxxxxxxxxx> wrote in message
news:OATF0JgWFHA.3220@xxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
> Can we return pointer or struct? I don't know how to do...
>
> Thank you very much!
>
> Best regards,
> Boki.
>
>
.
- Follow-Ups:
- Re: can we return pointer or struct?
- From: boki
- Re: can we return pointer or struct?
- From: boki
- Re: can we return pointer or struct?
- References:
- can we return pointer or struct?
- From: boki
- can we return pointer or struct?
- Prev by Date: Re: can we return pointer or struct?
- Next by Date: Re: How to convert a vector type into string?
- Previous by thread: Re: can we return pointer or struct?
- Next by thread: Re: can we return pointer or struct?
- Index(es):
Relevant Pages
|
Loading