Re: can we return pointer or struct?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



That's it. Thanks a lot!

Best regards,
Boki.

"ben" <benhongh@xxxxxxxxxxx> ¼¶¼g©ó¶l¥ó·s»D:42887b01$0$8120$afc38c87@xxxxxxxxxxxxxxxxxxxxxxx
> 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.
>>
>>
>
>


.



Relevant Pages

  • Re: string to int
    ... >Thank you vrey much. ... >Best regards, ... >Boki. ... string s; ...
    (microsoft.public.vc.language)
  • Re: can we return pointer or struct?
    ... Best regards, ... int email_address; ... struct contact get_my_contact ... struct contact boki; ...
    (microsoft.public.vc.language)
  • Re: inet_addr() in Python
    ... socket.inet_atonproduces a four-byte string you can pass as a struct in_addr, if that's what you are looking for. ... If you want a number then use the struct module to manipulate it further. ... I should have read the socket documentation more thoroughly. ...
    (comp.lang.python)
  • Re: how to store list of varying types
    ... When there's a variable-length string, ... typedef struct { ... pointer null, and the second one the CString object. ... then have to finish constructing the packet by copying the two data objects ...
    (microsoft.public.vc.mfc)
  • Re: MVC in C++
    ... Things are now flowing more along the classic MVC lines. ... > struct Observable ... > string version; ... In that case the Controller would trigger a model update *and it* could ...
    (comp.object)