This repository was archived by the owner on Nov 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
44 lines (35 loc) · 1.31 KB
/
Program.cs
File metadata and controls
44 lines (35 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections;
namespace Test;
class Program
{
static void Main(string[] args)
{
// // konstruktor BitMatrix(int, int, params int[])
// // macierz 2x2, komplet danych w tablicy
// var m = new BitMatrix(2, 2, new int[] { 1, 0, 0, 1 });
// Console.WriteLine(m);
// m = new BitMatrix(2, 2, 1, 0, 0, 0);
// Console.WriteLine(m);
// // konstruktor BitMatrix(int, int, params int[])
// // macierz 2x2, za dużo danych w tablicy
// var n = new BitMatrix(2, 2, 1, 0, 0, 1, 1, 1, 0);
// Console.WriteLine(n);
// // macierz 3x2, za mało danych w tablicy
// n = new BitMatrix(3, 2, 1, 0, 0, 1, 1);
// Console.WriteLine(n);
// // konstruktor BitMatrix(int[,])
// int[,] arr = new int[,] { { 1, 0, 1 }, { 0, 1, 1 } };
// var o = new BitMatrix(arr);
// Console.WriteLine(arr.GetLength(0) == o.NumberOfRows);
// Console.WriteLine(arr.GetLength(1) == o.NumberOfColumns);
// Console.Write(o.ToString());
// Console.WriteLine();
var m = new BitMatrix(5, 6);
var m2 = m;
Console.WriteLine(m.Equals(m2));
var m1 = new BitMatrix(5, 6);
var m3 = new BitMatrix(6, 5);
Console.WriteLine(m1.Equals(m3));
}
}