#include <iostream.h>
#include <stdlib.h>
#include <time.h>

#include "random.hpp"       // Meine Random Funktionen
#include "sort.hpp"         // Meine Sortier Funktionen




void main()
{
int temp = 0;

                            //                     [][][][][][]
const int ArraySize2 = 1;  // Ein Feld            [][][][][][]
const int ArraySize = 49;    // mit 12 * 6 Feldern  [][][][][][]
const int MinZahl = 1;      // Die nidrigst erlaubte Zahl ist 1
const int MaxZahl = MinZahl + ArraySize;     // Naja, 6 aus 6 wäre schön :) Aber es sind nun mal 6 aus 49


int LottoZahlen[ArraySize2][ArraySize]; // Array auf dem STACK (BUUUUHHH!) anlegen.
                                        // mit new wäre es besser!
int i = 0;                              // Zählervariable
int n = 0;                              // Zählervariable

    for(n=0;n<ArraySize2;n++)           // Array durchlaufen.
    {
        FillArrayWithRand(&LottoZahlen[n][0],ArraySize,MinZahl,MaxZahl); // Array füllen
        SortIntArray(&LottoZahlen[n][0],ArraySize); // Zahlen Sortieren
    }


        cout<<endl;
    // Ausgabe der Zahlen. Mag ich nicht erklären (finger weh tu vom tippen hier und im ICQ Chat)
    for(n=0;n<ArraySize2;n++)
    {
      for(i=0;i<ArraySize;i++)
                cout<<LottoZahlen[n][i]<<" ";
        cout<<endl;
    }

}





