#include <iostream>
#include <Windows.h>
using namespace std;
class mass{
private:
int **arr; int size_n, size_m;
public:
int cr_arr(int size_n, int size_m)
{
arr = new int *[size_n];
for (int i = 0; i < size_n; i++)
{
arr[i] = new int[size_m];
}
return 0;
}
int inarr()
{
for (int i = 0; i < size_n; i++)
{
for (int j = 0; j < size_m; j++)
{
arr[i][j] = 1;
}
}
return 0;
}
int outarr()
{
for (int i = 0; i < size_n; i++)
{
for (int j = j; j < size_m; j++)
{
cout << arr[i][j];
}
}
return 0;
}
};
int main() {
int n; cin >> n;
mass a;
a.cr_arr(n, n);
a.inarr();
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.