Ich möchte folgendes Programm (Hier auf eurer Seite gefunden und minimal modifiziert) so umbasteln, daß man mehrere Tips abgeben kann und im Zweifel das Ganze auch noch für mehrere Personen. Hat jemand eine Idee?
Mit zweidimensionalen Feldern tue ich mich leider ein wenig schwer
Mit zweidimensionalen Feldern tue ich mich leider ein wenig schwer

Code:
#include <iostream>
#include <cstdlib>
#include <algorithm>
#include <time.h>
using namespace std;
int main()
{
int zahl[6];
int zufall[6];
int treffer=0;
int i=0, j=0, l=0;
char menuewahl;
/* EINGABE
********************************************** */
cout << "\n(1) Spielschein ausfuellen";
cout << "\n(3) Ende" << endl;
cin >> menuewahl;
/* EINGABE ENDE
********************************************** */
switch (menuewahl)
{
case '1':
{
for( i=0; i<=5; i++)
{
cout << "Gib die " << i+1 << ". Zahl ein: ";
cin >> zahl[i];
/* GUELTIGKEITSPRUEFUNG
********************************************** */
if( zahl[i] < 1 || zahl[i] > 49 )
{
cout << "Die Zahl muss groesser als 0 und kleiner als 50 sein!\n";
i--;
}
/* GUELTIGKEITSPRUEFUNG ENDE
*********************************************** */
/* UEBERPRUEFUNG AUF DOPPELTE ZAHLEN
********************************************** */
j=0;
for( j=0; j<=i-1; j++ )
{
if( zahl[j] == zahl[i] )
{
cout << "Zahl schon vorhanden!\n";
i--;
}
}
}
/* UEBERPRUEFUNG AUF DOPPELTE ZAHLEN ENDE
********************************************** */
system("cls");
cout << "\n(2) Lottozahlen ziehen";
cout << "\n(3) Ende" << endl;
cin >> menuewahl;
}
/*AUSGABE DER EINGABE *g*
********************************************** */
/*j=0;
for( j=0; j<=5; j++ )
{
cout << "Die " << j+1 << ". Zahl ist " << zahl[j] << ".\n";
}*/
/*AUSGABE DER EINGABE ENDE
********************************************** */
case '2':
{
/* ERZEUGUNG VON ZUFÄLLIGEN LOTTOZAHLEN
********************************************** */
srand( unsigned(time( NULL ) ) );
l=0;
for( l=0; l<=5; l++ )
{
zufall[l]=1+(rand()%49);
j=0;
for( j=1; j<=l-1; j++ )
{
if( zufall[j] == zufall[l] )
l--;
}
}
/* ERZEUGUNG VON ZUFÄLLIGEN LOTTOZAHLEN ENDE
********************************************** */
/* LOTTOZAHLEN AUSGEBEN
********************************************** */
system("cls");
cout << "\nDie Lottozahlen dieser Ziehung lauten: " << endl;
sort(zufall, zufall + 6);
j=0;
for( j=0; j<=5; j++ )
{
cout << "\t" << zufall[j] << " ";
}
/* LOTTOZAHLEN AUSGEBEN ENDE
********************************************** */
/* ZAHLEN VERGLEICHEN
********************************************** */
j=0;
for( j=0; j<=5; j++ )
{
l=0;
for( l=0; l<=5; l++ )
{
if( zahl[j] == zufall[l] )
treffer++;
}
}
/* ZAHLEN VERGLEICHEN ENDE
********************************************** */
/* ZAHLEN SORTIEREN UND AUSGEBEN
********************************************** */
sort(zahl, zahl + 6);
cout << "\nDeine Zahlen sortiert zum Vergleich: " << endl;
for(int zahlaus=0; zahlaus<=5; zahlaus++ )
{
cout << "\t" << zahl[zahlaus] << " ";
}
/* ZAHLEN SORTIEREN UND AUSGEBEN
********************************************** */
/* TREFFERANZAHL AUSGABE
********************************************** */
cout << "\nDu hast " << treffer << " Richtig(e).\n"; cout << "\n";
/* TREFFERANZAHL AUSGABE ENDE
********************************************** */
cout << "\n(3) Ende" << endl;
cin >> menuewahl;
break;
}
case '3':
{
cout << "\nEnde...";
}
}
return 0;
}