vb.net自带进制算法,但我们这里要学习的是递归算法啊!代码中还有循环算法及vb.net自带进制算法
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
txtN.Text = "2"
End Sub
Private Sub btnConvto_Click(sender As Object, e As EventArgs) Handles btnConvto.Click
If IsNumeric(txtSource.Text) AndAlso IsNumeric(txtN.Text) Then
Try
Dim intSource As Integer = CInt(txtSource.Text) '十进程要转换的数值
Dim intN As Integer = CInt(txtN.Text) 'N进制数值
If intN > 1 AndAlso intN <=