ok thanksnow im a little more confused. if i dont need switch/case what would be better to use? is it anything closer to what i was thinking before with the if statements or should i try stick with the switch/case?
again i know this is not proper code language, i am jus quite confused. any help would be greatCode://GET DIRECTION FUNCTION int getDirection(int room){ printf("\nType the letter of the direction you wish to go in \nOr type q to quit"); //To HERE* user presses "n" computer looks at current room // scanf maybe??? if exit[North]> 0 goto corresponding room else if exit north = 0 printf("\ncannot go in this diresction, please select a different direction") if completely wrong key pressed (so not n,e,s,w or q) printf("\ninvalid key, please only use n,e,s,w or q") //LOOP FROM HERE* }![]()



1Likes
LinkBack URL
About LinkBacks
now im a little more confused. if i dont need switch/case what would be better to use? is it anything closer to what i was thinking before with the if statements or should i try stick with the switch/case?



im not too sure what it is tho, any help would be fantastic. thanks so much for all your help. i feel like i have learnt a lot