So, it would look similar to?
void StudentType::printData(std::cout& out) const
Never worked with ostream before.
Type: Posts; User: brunion
So, it would look similar to?
void StudentType::printData(std::cout& out) const
Never worked with ostream before.
That's what I would have preferred to have done, but the professor asked us to do it like so:
StudentType
-name: string
-grades: int[NUM_GRADES]
-average: float
+StudentType()...
Based off some info I found on one of the tutorials, I simply declared it above as:
fstream out;
And it compiled perfectly, would that have been appropriate?
This program is our first using classes, and I cannot figure out a compiler error. Any help is really appreciated, as this may decide whether I pass the class. :-/
The program is designed to input...