edited c++ syntax to be consistent with mogu project