I am using the following code for a class project, but for some reason the #include string is not working, and the compiler is flagging every declaration using string. What did I do wrong?
#ifndef MEMORY_H
#define MEMORY_H
#include <string>
class Memory
{
private:
    string mem[1000];
public:
Memory()
{
    for each(string s in mem)
    {
        s = "nop";
    }
};
string get(int loc)
{
    return mem[loc];
};
void set(int loc, string input)
{
    mem[loc] = input;
}
};
#endif
 
     
    