C# 클래스 DotNetMatrix.examples.MagicSquareExample

Example of use of GeneralMatrix Class, featuring magic squares. *
파일 보기 프로젝트 열기: xieguigang/VisualBasic_AppFramework

공개 메소드들

메소드 설명
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