SHARE
TWEET

SGDJ #1

RedReaper132 Jul 11th, 2011 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <ctime>
  4. #include <cstdlib>
  5. using namespace std;
  6.  
  7. int main( int argc, char* args[] )
  8. {
  9.   srand(time(NULL));
  10.  
  11.   const int N = 12;
  12.  
  13.   string izb[] = { "Mashup", "Dan, ko sem se naucil carati", "Top-down", "Mini RTS", "Vrtnarjenje", "Prosto grajenje oz. razvoj", "Post apocalyptic", "Random generated content", "RPG brez nasilja", "Simulation", "Photo realistic", "SHMUP" };
  14.  
  15.   int num[2];
  16.  
  17.   num[0] = rand() % N;
  18.  
  19.   do
  20.     {
  21.       num[1] = rand() % N;
  22.     }while (num[1] == num[0]);
  23.  
  24.   cout << "SGDJ #1 Teme:\n" << izb[num[0]] << endl << izb[num[1]] << endl;
  25.   cin.get();
  26.  
  27.   return 0;
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top