Advertisement
Guest User

C++ horror

a guest
Aug 17th, 2013
2,198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.68 KB | None | 0 0
  1. if (userval[0]!= static_cast<char>(num2))
  2. cout<<"you got the question 1 wrong correct answer is " << static_cast<char>(num2)<<endl;
  3. if (userval[1]!= static_cast<char>(num4))
  4. cout<<"you got the question 2 wrong correct answer is " << static_cast<char>(num4)<<endl;
  5. if (userval[2]!= static_cast<char>(num1))
  6. cout<<"you got the question 3 wrong correct answer is " << static_cast<char>(num1)<<endl;
  7. if (userval[3]!= static_cast<char>(num1))
  8. cout<<"you got the question 4 wrong correct answer is " << static_cast<char>(num1)<<endl;
  9. if (userval[4]!= static_cast<char>(num3))
  10. cout<<"you got the question 5 wrong correct answer is " << static_cast<char>(num3)<<endl;
  11. if (userval[5]!= static_cast<char>(num1))
  12. cout<<"you got the question 6 wrong correct answer is " << static_cast<char>(num1)<<endl;
  13. if (userval[6]!= static_cast<char>(num2))
  14. cout<<"you got the question 7 wrong correct answer is " << static_cast<char>(num2)<<endl;
  15. if (userval[7]!= static_cast<char>(num1))
  16. cout<<"you got the question 8 wrong correct answer is " << static_cast<char>(num1)<<endl;
  17. if (userval[8]!= static_cast<char>(num3))
  18. cout<<"you got the question 9 wrong correct answer is " << static_cast<char>(num3)<<endl;
  19. if (userval[9]!= static_cast<char>(num4))
  20. cout<<"you got the question 10 wrong correct answer is " << static_cast<char>(num4)<<endl;
  21. if (userval[10]!= static_cast<char>(num2))
  22. cout<<"you got the question 11 wrong correct answer is " << static_cast<char>(num2)<<endl;
  23. if (userval[11]!= static_cast<char>(num3))
  24. cout<<"you got the question 12 wrong correct answer is " << static_cast<char>(num3)<<endl;
  25. if (userval[12]!= static_cast<char>(num4))
  26. cout<<"you got the question 13wrong correct answer is " << static_cast<char>(num4)<<endl;
  27. if (userval[13]!= static_cast<char>(num1))
  28. cout<<"you got the question 14 wrong correct answer is " << static_cast<char>(num1)<<endl;
  29. if (userval[14]!= static_cast<char>(num4))
  30. cout<<"you got the question 15 wrong correct answer is " << static_cast<char>(num4)<<endl;
  31. if (userval[15]!= static_cast<char>(num3))
  32. cout<<"you got the question 16 wrong correct answer is " << static_cast<char>(num3)<<endl;
  33. if (userval[16]!= static_cast<char>(num3))
  34. cout<<"you got the question 17 wrong correct answer is " << static_cast<char>(num3)<<endl;
  35. if (userval[17]!= static_cast<char>(num2))
  36. cout<<"you got the question 18 wrong correct answer is " <<static_cast<char>(num2)<<endl;
  37. if (userval[18]!= static_cast<char>(num4))
  38. cout<<"you got the question 19 wrong correct answer is " <<static_cast<char>(num4)<<endl;
  39. if (userval[19]!= static_cast<char>(num1))
  40. cout<<"you got the question 20 wrong correct answer is " <<static_cast<char>(num1)<<endl;
  41.  
  42. cout<<endl;
  43. cout<<endl;
  44. return (0);
  45. Tada.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement