// MathMax.cpp : メイン プロジェクト ファイルです。 #include "stdafx.h" using namespace System; int main(array ^args) { // 2 つの数値のうち大きい方の数値を取得する int iMax = System::Math::Max(12, 13); // 取得した数値を表示する Console::WriteLine(iMax); //13 return 0; }