I have this code, which is supposed to cout an string of an array, but it doesn't do anything :/ also, when I run the .exe file itself it gives some errors of not finding basic_string in the file.
#include <iostream>
#include <string>
using namespace std;
//red is F-face, yellow is D-face
//B G O R W Y
class cube{
public:
string cubeCorners[8] = {"BOY", "GOY", "GRY", "BRY", "BOW", "GOW", "GRW", "BRW"};
void U(){
cout << cubeCorners[1];
cubeCorners[2] = cubeCorners[3], cubeCorners[6] = cubeCorners[2], cubeCorners[7] = cubeCorners[6], cubeCorners[3] = cubeCorners[7];
}
};
int main(){
cube obj;
obj.U();
return 0;
}
How do I fix this, and what did I do wrong?