0

Why do we learn about the switch statements and how can we use them in, games, music programs, e.t.c?

3rd Mar 2017, 8:27 PM
Lorenzo Nagel
Lorenzo Nagel - avatar
3 Réponses
+ 2
I forgot what the switch statement is but could you use it to switch soundtrack?
4th Mar 2017, 1:41 AM
Zaakir Hussain
Zaakir Hussain - avatar
+ 1
switch statement is conditional statements like if esle if.. but its easy to pass a variable in switch and compare different states of it. in games you can ask user a correct answer from different displayed answers and compare with logic.
3rd Mar 2017, 8:46 PM
Zain Khalid
Zain Khalid - avatar
0
swich is for makeing asound and a afrial assiant
6th Mar 2017, 1:18 AM
diogo