Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C++ > friend classes

Reply
Thread Tools

friend classes

 
 
arash.koushkestani@gmail.com
Guest
Posts: n/a
 
      08-11-2006
Hi, I wrote some programs with friend classes but some of them work and
some of them don't work, can antbody help me? First, I want to know how
much it is useful in programming, Then I need links to learn about it
and finally if you can, help me!

 
Reply With Quote
 
 
 
 
red floyd
Guest
Posts: n/a
 
      08-11-2006
wrote:
> Hi, I wrote some programs with friend classes but some of them work and
> some of them don't work, can antbody help me?


You have an error on line 42 of your program. Post a minimal,
compilable example that shows the behavior you don't like, tell us what
behavior you expected, and what you got.

> First, I want to know how
> much it is useful in programming, Then I need links to learn about it
> and finally if you can, help me!


It's as useful as any other part of the language.

Read your text book.

This sounds suspiciously like homework.
 
Reply With Quote
 
 
 
 
Thomas Tutone
Guest
Posts: n/a
 
      08-11-2006
wrote:

> Hi, I wrote some programs with friend classes but some of them work and
> some of them don't work, can antbody help me?


Yes - first you need to fix the errors in your code, and then I expect
the classes will work properly. Please let us know if you need
additional help.

> First, I want to know how
> much it is useful in programming, Then I need links to learn about it
> and finally if you can, help me!


Now, I'm sure you checked the FAQ before posting, but just in case, I
expect you will find the following two references answer most or all of
your questions:

http://www.parashift.com/c++-faq-lite/friends.html

http://www.parashift.com/c++-faq-lit...t.html#faq-5.8

Good luck.

Best regards,

Tom

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Must See Deifferences between Friend & Best Friend wonderfulinfo@gmail.com Digital Photography 17 08-07-2006 01:34 PM
Friend brings a friend. Shisha Girl MCSE 4 03-03-2006 02:42 AM
Friend brings a friend. Shisha Girl C++ 1 03-02-2006 01:23 PM
Friend brings a friend. Shisha Girl C Programming 0 03-02-2006 02:36 AM
Friend brings a friend. Shisha Girl Python 0 03-02-2006 02:28 AM



Advertisments