(
intargc,
char* argv[]) {
22 doublehighestGPA = NAN;
30std::cout << std::fixed << std::showpoint;
31std::cout << std::setprecision(2);
32infile >> GPA >> name;
36 if(GPA > highestGPA) {
40}
else if(GPA == highestGPA) {
43infile >> GPA >> name;
45std::cout <<
"Highest GPA: "<< highestGPA << std::endl;
46std::cout <<
"Students the highest GPA are: "<< std::endl;
48std::cout << stk.
top() << std::endl;
51std::cout << std::endl;
for std::invalid_argument
bool isEmptyStack() const
void push(const value_type &item)
int main()
Main function.
This class specifies the basic operation on a stack as a linked list.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4