Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. #include <cstdlib>
  2. #include <iostream>
  3. #include <ctime>
  4.  
  5. using namespace std;
  6.  
  7. int main(int argc, char *argv[])
  8. {
  9. int language;
  10. srand(time(0));
  11. language = rand () % 6 + 1;
  12.  
  13. switch (language) {
  14.  
  15. case '1':
  16. cout<<"hello world !";
  17. break;
  18.  
  19. case '2':
  20. cout<<"hola mundo";
  21. break;
  22.  
  23. }
  24.  
  25.  
  26.  
  27. system("PAUSE"); // For Dev++ under Windows
  28. return (EXIT_SUCCESS);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement