CalcApp

1 クラス/構造体

1.1 CalcApp::Program

calc コマンドのメインクラス。

1.1.1 関数

1.1.1.1 Main

static int Main ( string[] args )

プログラムのエントリーポイント。

使用例:

./CalcApp 10 + 20
// 出力: 30

./CalcApp 15 - 5
// 出力: 10

./CalcApp 6 x 7
// 出力: 42

./CalcApp 20 / 4
// 出力: 5

1.1.2 引数

  • args コマンドライン引数の配列。

1.1.3 戻り値

成功時は 0、失敗時は 1 を返します。