#include <iostream>
#include <iomanip>
#include <cstdlib>
#include <ctime>
using namespace std;
const int size_x = 25;
const int size_y = 2;
int field[size_x][size_y];
void location(int& size_x, int& size_y);
int main ()
{
srand((unsigned) time(NULL));
cout << fixed << showpoint << setprecision(5);
for ( int i = 0; i < size_x; ++i )
{
for (int i = 0; i <size_y; ++i)
{
cout << size_y <<" " << rand() % 10;
cout << size_x <<" " << rand() % 2 << endl;
}
}
return 0;
}
//location function
void location(int& size_x, int& size_y)
{
}
can any one help. the output supose to be only two lines with both size_x and size_y being randome numbers.