Author: admin

A great tragedy befalls Russia

At a state dinner dozens of high ranking officials have died. After eating a mushroom cream soup generals started falling to the floor left and right. The investigation is quick: the official cause is mushroom poisoning. Members of the press are invited to the scene of the tragedy. "As you can see by the foaming…

Calling an int function from another class and adding it to a local variable.

​ CourDec.h int getCredits() const; … … int Course::getCredits() const { return credits; /* Line 127 */ } SchDec.h #include "CourDec.h" using collectCred = std::vector<Course>; using iterator = collectCred::iterator; using const_iterator = collectCred::const_iterator; … … int getCredits() const; SchImp.cpp #include "SchDec.h" int Schedule::getCredits() const { int totalCredits = 0; collectCred credCheck; const_iterator it = credCheck.begin();…