Hi
When I tried to compile like g++ -std=c++11 -W -Wall
it gives this error
error: ‘stoi’ is not a member of ‘std’
#include <string>
#include <iostream>
#include <fstream>
class Grade {
public:
// Default Constructor
Grade() {};
// Functors
// If the given course and the score matches the student grade, return true
bool operator()(std::string course, std::string score) {
return course == course_ && std::stoi(score) == score_;
//return false;
}
t
this is not complete code.any suggestions
Any suggestions?