Python to c++ conversion problem
Akdes Serin
e0427463 at student.tuwien.ac.at
Wed Mar 23 05:15:13 EST 2005
I have a code in python like
if eval('player.moveRoom(SeLinuxMud.Direction.' + x + ')'): # moveRoom
function takes Direction enum as a parameter
When I am trying to write this code in c++
if (player->moveRoom(s[1])) //s[1] is a string so it outputs an error
because of not taking enum as a parameter
How can I change string to enum in c++?
Thanks.
More information about the Python-list
mailing list