C# Класс DotNetMatrix.examples.MagicSquareExample

Example of use of GeneralMatrix Class, featuring magic squares. *
Показать файл Открыть проект

Открытые методы

Метод Описание
fixedWidthDoubletoString ( double x, int w, int d ) : System.String

Format double with Fw.d. *

fixedWidthIntegertoString ( int n, int w ) : System.String

Format integer with Iw. *

magic ( int n ) : DotNetMatrix.GeneralMatrix

Generate magic square test matrix. *

Приватные методы

Метод Описание
Main ( System argv ) : void
print ( System s ) : void

Shorten spelling of print. *

Описание методов

fixedWidthDoubletoString() публичный статический Метод

Format double with Fw.d. *
public static fixedWidthDoubletoString ( double x, int w, int d ) : System.String
x double
w int
d int
Результат System.String

fixedWidthIntegertoString() публичный статический Метод

Format integer with Iw. *
public static fixedWidthIntegertoString ( int n, int w ) : System.String
n int
w int
Результат System.String

magic() публичный статический Метод

Generate magic square test matrix. *
public static magic ( int n ) : DotNetMatrix.GeneralMatrix
n int
Результат DotNetMatrix.GeneralMatrix