Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <ctime>
- #include <cstdlib>
- using namespace std;
- int main( int argc, char* args[] )
- {
- srand(time(NULL));
- const int N = 12;
- 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" };
- int num[2];
- num[0] = rand() % N;
- do
- {
- num[1] = rand() % N;
- }while (num[1] == num[0]);
- cout << "SGDJ #1 Teme:\n" << izb[num[0]] << endl << izb[num[1]] << endl;
- cin.get();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement