Question: Hi, I have a question about C++, the compiler I used is Visual Studio 2017. When I was trying to run my code, it has
Hi, I have a question about C++, the compiler I used is Visual Studio 2017. When I was trying to run my code, it has 2 scenes, the scene1 works well, but after I pressed "2", scene 1 would keep changing as my scene 2 changes, I wanna them works respectively. Can you help me? Some details would be appreciated.
//(Scene 1) for (int i = 1; i
window.draw(circle); }
//(Scene 2) else if (sf::Keyboard::isKeyPressed(sf::Keyboard::Num2)) { for (int row = 1; row
} }
(key1)
(key 2, both changed)
OOOO - sc
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
