Fix Mechie IF..ELSE


/ Published in: C++
Save to your folder(s)

giler


Copy this code and paste it in your HTML
  1. if(type == 1) {
  2. strcpy_s(CAR_TYPE,"CAR");
  3.  
  4. } else if(type == 2) {
  5. strcpy_s(CAR_TYPE,"MPV");
  6.  
  7. } else if(type == 3) {
  8. strcpy_s(CAR_TYPE,"TRUCK");
  9.  
  10. } else if(type == 4) {
  11. strcpy_s(CAR_TYPE,"VAN");
  12.  
  13. } else if(type == 5) {
  14. strcpy_s(CAR_TYPE,"BUS");
  15.  
  16. } else {
  17. strcpy_s(CAR_TYPE,"UNKNOWN?");
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.