I get inputs from user and I put them into a vector. After that I want to get any value of vector at some index. It gives a number. How can I get the exact input value?
enum Enums
{
I, O,T, J , L, S, Z
};
int main()
{
unsigned int index;
Piece piece;
for (index=0; index < 5; index ++)
{
cout << "What are the " << index+1 << ". piece?\n";
cin >> piece.inputPiece;
piece.pieceList.push_back(static_cast<Enums>(piece.inputPiece));
}
Enums firstPiece= piece.pieceList[0];
cout <<firstPiece;
}
Out Value is 79;