Sie sind auf Seite 1von 3

#include <iostream>

#include <algorithm>
#include <string>

using namespace std;

int randomfunc(int j)
{
return rand() % j;
}

string msg(int n)
{
switch (n){
case 1:
return "Reporting the present about me";
break;

case 2:
return "Reporting the present about us both";
break;

case 3:
return "Reporting the present about us";
break;

case 4:
return "Reporting the present about you";
break;

case 5:
return "Reporting the present about you both";
break;

case 6:
return "Reporting the present about you all";
break;

case 7:
return "Reporting the present about him";
break;

case 8:
return "Reporting the present about them both";
break;

case 9:
return "Reporting the present about them";
break;

case 10:
return "Wishful thinking about me";
break;

case 11:
return "Wishful thinking about us both";
break;

case 12:
return "Wishful thinking about us";
break;

case 13:
return "Wishful thinking about you";
break;

case 14:
return "Wishful thinking about you both";
break;

case 15:
return "Wishful thinking about you all";
break;

case 16:
return "Wishful thinking about him";
break;

case 17:
return "Wishful thinking about them both";
break;

case 18:
return "Wishful thinking about them";
break;

case 19:
return "Prescription about me";
break;

case 20:
return "Prescription about us both";
break;

case 21:
return "Prescription about us";
break;

case 22:
return "Prescription about you";
break;

case 23:
return "Prescription about you both";
break;

case 24:
return "Prescription about you all";
break;

case 25:
return "Prescription about him";
break;

case 26:
return "Prescription about them both";
break;
case 27:
return "Prescription about them";
break;

case 28:
return "Reporting the past about me";
break;

case 29:
return "Reporting the past about us both";
break;

case 30:
return "Reporting the past about us";
break;

case 31:
return "Reporting the past about you";
break;

case 32:
return "Reporting the past about you both";
break;

case 33:
return "Reporting the past about you all";
break;

case 34:
return "Reporting the past about him";
break;

case 35:
return "Reporting the past about them both";
break;

case 36:
return "Reporting the past about them";
break;

}
}

int main()
{
srand((int)time(0));
int a[36]={1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25,26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36};

random_shuffle(&a[0],&a[35], randomfunc);

for (unsigned i = 0; i < 36; i++)


{
cout << msg(a[i]) <<"\n";
}
cout << endl;
}

Das könnte Ihnen auch gefallen