Making a list selection variable

I need to make a variable like this, How can I do?

I found;

enum playpos
{
GK,
SW,
RB
}