C# Class DotNetMatrix.examples.MagicSquareExample

Example of use of GeneralMatrix Class, featuring magic squares. *
Afficher le fichier Open project: xieguigang/VisualBasic_AppFramework

Méthodes publiques

Méthode Description
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. *

Private Methods

Méthode Description
Main ( System argv ) : void
print ( System s ) : void

Shorten spelling of print. *

Method Details

fixedWidthDoubletoString() public static méthode

Format double with Fw.d. *
public static fixedWidthDoubletoString ( double x, int w, int d ) : System.String
x double
w int
d int
Résultat System.String

fixedWidthIntegertoString() public static méthode

Format integer with Iw. *
public static fixedWidthIntegertoString ( int n, int w ) : System.String
n int
w int
Résultat System.String

magic() public static méthode

Generate magic square test matrix. *
public static magic ( int n ) : DotNetMatrix.GeneralMatrix
n int
Résultat DotNetMatrix.GeneralMatrix