User Profile

Collapse

Profile Sidebar

Collapse
Demoris
Demoris
Last Activity: Apr 4 '07, 06:17 PM
Joined: Mar 14 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Demoris
    replied to Overloading operator>> - class errors
    in C
    Visual Studio 2005. Tried to build again today, same errors....
    See more | Go to post

    Leave a comment:


  • Demoris
    replied to Stuck!! Not Far More Need Help!!
    in C
    Adding a few functions to clean up your program would be very helpful. Some possible functions could include:
    • changing seat to display an 'X'
    • checking to see if a seat is occupied
    • checking to see if all seats are occupied
    • displaying the seat arrangement after each seat choice by the user



    To essentially eliminate the need for the switch statement:
    (the reason for 65 is thats the ascii code for 'A' - as such, you'd...
    See more | Go to post

    Leave a comment:


  • Demoris
    started a topic Overloading operator>> - class errors
    in C

    Overloading operator>> - class errors

    I have a class that I believe should work. I've compared it to previous programs I've written, compared it to examples from my professor, to examples in my textbook, but can't see why I get the errors I get when building.

    All errors take place in the line
    Code:
    friend istream& operator>>(istream& ins, QuadPolyn& P);
    Please note this is NOT an assignment, just an example of what we should be able to do....
    See more | Go to post

  • Demoris
    replied to Class Inheritance
    in C
    How could I call the function from within the parent class?

    The function in the child class is public....
    See more | Go to post

    Leave a comment:


  • Demoris
    started a topic Class Inheritance
    in C

    Class Inheritance

    I have two classes: A and B.

    Class B is a child class of A.

    In class A I have the friend operator>> overloaded, and want to access a public function from the child class B.

    However, when I build, I get the error "class A has no member named function".

    Why can't I access the public function in the child class?

    code snippets:

    Code:
    //Parent
    ...
    See more | Go to post
    Last edited by sicarie; Mar 14 '07, 09:34 PM. Reason: Added [code] and [/code] tags
No activity results to display
Show More
Working...