User Profile
Collapse
-
Visual Studio 2005. Tried to build again today, same errors.... -
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...Leave a comment:
-
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 lineCode:friend istream& operator>>(istream& ins, QuadPolyn& P);
-
How could I call the function from within the parent class?
The function in the child class is public....Leave a comment:
-
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
No activity results to display
Show More
Leave a comment: