if (checkForRoll == "intellect" && checkForRoll == "Intellect") {//checks for intellect
intellect = intellect + 5;
} else if (checkForRoll == "strength" && checkForRoll == "Strength") {
strength = strength + 5;
}
cout << intellect;
Run Code Online (Sandbox Code Playgroud)
当我执行此操作时,intellect int不会添加5.为什么?