12345678910111213141516171819202122
#include <iostream> #include <Windows.h> #include <string> class HumanoidState { public: const char *State = "Idle"; std::string GetState() { return State; } }; void ChangeState(std::string *state, std::string newState) { *state = newState; } int main() { SetConsoleTitle(TEXT("test")); std::cout << "Current state:" << HumanoidState->GetState() << std::endl; system("pause"); return 1; }