Пример #1
0
 public static MatrixGenerator GetInstance()
 {
     if (instance == null)
     {
         instance = new MatrixGenerator();
     }
     return(instance);
 }
Пример #2
0
 static void Zadatak2()
 {
     Console.WriteLine("Zadatak 2");
     Console.WriteLine("Nasumicna matrica velicine 2x3");
     float[][] matrix = MatrixGenerator.GetInstance().CreateMatrix(2, 3);
     Debug(matrix);
     Console.WriteLine("***************************************\n");
 }