boncey / Flickr4Java

Java API For Flickr. Fork of FlickrJ
BSD 2-Clause "Simplified" License
176 stars 155 forks source link

C++ #541

Closed DAnonymous3 closed 2 years ago

DAnonymous3 commented 2 years ago

Mathematician Class (a very powerful character ...:) like a magician, but rather than spells, she has problems (that is math problems to solve). There is a method to add a new the problem for consideration, and there is a method to solve a problem. For adding a problem, add a method named addProb which takes a single string as input and somehow stores this string. For solving a problem, add a method named solveProb, which takes no inputs, and returns a string; it should return the most recent problem that was added, and that problem should be removed from her store of problems. Also, add an inventory method for listing all the problems currently possessed; this method takes no inputs and prints all these problems.

how will you create those methods using c++??