Posted By

javageget on 12/04/11


Tagged


Versions (?)

Fix Mechie IF..ELSE


 / Published in: C++
 

giler

  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  

You need to login to post a comment.