public static void Main_HomeWork1(string[] args) { string lhsS, rhsS = "1"; Random rnd = new Random(System.DateTime.Now.Millisecond); while ((lhsS = Shell.ReadLine()) != string.Empty) { //1.36进制大数加1 string outString = UtilityApi.bigPlush(lhsS, rhsS, 36); //Shell.WriteLine(outString); //2.如题 for (int i = 0; i < 99; ++i) { //solveTwo(i); } //3.如题 solve3_10_3(rnd); } }
private void bigNumPlushbutton_Click(object sender, EventArgs e) { if (lhsBigNumHasSet && rhsBigNumHasSet) { int radix = int.Parse(bigNumRadix_textBox.Text); if (radix < 2 || radix > 36) { Win32API.MessageBox(IntPtr.Zero, "进制输入错误!", "警告", 0); } else { bigNumSum_textBox.Text = UtilityApi.bigPlush( lhsBigNum_textBox.Text , rhsBigNum_textBox.Text , radix ); } } else { bigNumSum_textBox.Text = "请在左侧输入框 输入数字!"; } }
public static string SailHeApiTest() { Win32API.MainForTest(); CInterFace.MainForTest(); return(UtilityApi.bigPlush("2147483647", "10")); }