All pastes #453062 Raw Edit

Untitled

public cpp v1 · immutable
·published 2007-04-22 18:53 UTC
rendered paste body
#include <iostream>#include <vector>#include <fstream>using namespace std;int tal[10];void slumpa();void print();int main(){    slumpa();    print();        return 0;    }void slumpa(){        srand(time(0));        for ( int j=0; j<10; j++ )    {        tal[j]=rand()%26;    }                       void print (){        ofstream fout;        fout.open("talen.txt");        for ( int i=0 ; i<10 ; i++ )        {                fout << tal[i] << " ";        }        fout << "\n";        fout.close();}