C++字符比较
typedef char SWDirectionDataType;
/// 买
#define SWDirection_D_BuyEnumType '0'
/// 卖
#define SWDirection_D_SellEnumType '1'
void main()
{
SWDirectionDataType direction = '1';
if (direction == SWDirection_D_BuyEnumType)
{
cout << "buy" << endl;
}
else
{
cout << "sell" << endl;
}
int wait;
cin >> wait;
}