<del id="d4fwx"><form id="d4fwx"></form></del>
      <del id="d4fwx"><form id="d4fwx"></form></del><del id="d4fwx"><form id="d4fwx"></form></del>

            <code id="d4fwx"><abbr id="d4fwx"></abbr></code>
          • c轉(zhuǎn)換成vb.net,c轉(zhuǎn)換成co的化學方程式

            請幫忙將以下C語言代碼轉(zhuǎn)換為VB.NET代碼,謝謝!

            Option Explicit On

            我們提供的服務有:網(wǎng)站制作、成都做網(wǎng)站、微信公眾號開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認證、固鎮(zhèn)ssl等。為上千余家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務,是有科學管理、有技術的固鎮(zhèn)網(wǎng)站制作公司

            Option Strict On

            Imports System

            Module Program

            Sub Main()

            Dim y,m,t As Integer

            begin:

            ' 輸入數(shù)據(jù)時一行一個

            y=CInt(Console.ReadLine())

            m=CInt(Console.ReadLine())

            t=CInt(Console.ReadLine())

            If y100 Then

            y=y+2000

            End If

            If y1916 OrElse m200 Then

            Console.WriteLine("ERROR")

            goto begin

            End If

            pr(y,m,t)

            Console.Write("Press any key to continue . . . ")

            Console.ReadKey(True)

            End Sub

            Function pr(y As Integer,m As Integer,t As Integer) As Integer

            Dim ye,[Me],i As Integer

            ye=CInt((m+t-2)/12+y)

            [Me]=(m+t-2) Mod 12+1

            Console.WriteLine(" {0}-{1} ~ {2}-{3}",y,m,ye,[Me])

            ye=y

            [Me]=m

            For i=0 To t-1

            prmonth(ye,[me])

            [Me]=[Me]+1

            If [Me]12 Then

            ye=ye+1

            [me]=1

            End If

            Next

            Return 0

            End Function

            Function yam(y As Integer,m As Integer) As Integer

            Dim st As String()={"未定義","一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"}

            Console.WriteLine(" {0} {1}",y,st(m))

            Console.WriteLine("----------------------------")

            Return 0

            End Function

            Function ryear(y As Integer) As Integer

            If 0=y Mod 400 OrElse (0y Mod 100 AndAlso 0=y Mod 4) Then

            Return 1

            Else

            Return 0

            End If

            End Function

            Function mday(y As Integer,m As Integer) As Integer

            Dim day As Integer()={0,31,28,31,30,31,30,31,31,30,31,30,31}

            Dim ad As Integer=0

            If 2=m Then

            ad=ryear(y)

            End If

            Return day(m)+ad

            End Function

            Function monday(y As Integer,m As Integer) As Integer

            Dim md As Integer=6

            Dim i,daynum As Integer

            For i=1916 To y-1

            daynum=365+ryear(i)

            md=(md+daynum) Mod 7

            Next

            For i=1 To m-1

            md=(md+mday(y,i)) Mod 7

            Next

            Return md

            End Function

            Function prmonth(y As Integer,m As Integer) As Integer

            Dim md As Integer=monday(y,m)

            Dim daysnum As Integer=mday(y,m)

            Dim days As Integer=daysnum+md

            Dim i As Integer

            yam(y,m)

            Console.Write(" 日 一 二 三 四 五 六")

            For i=0 To days-1

            If 0=i Mod 7 Then

            Console.WriteLine()

            Console.WriteLine()

            Console.Write(" ")

            End If

            If i-md=0 Then

            Console.Write(" {0,2}",i-md+1)

            Else

            Console.Write(" ")

            End If

            Next

            Console.WriteLine()

            Console.WriteLine()

            Return 0

            End Function

            End Module

            vb.net中的數(shù)據(jù)強制轉(zhuǎn)化問題,誰幫我把這段C#轉(zhuǎn)化為VB.net的語言

            強制類型轉(zhuǎn)換在VB.NET中用Ctype()函數(shù)實現(xiàn)的。

            Dim drv As DataRowView = CType(comboBox1.SelectedItem, DataRowView)

            另外:comboBox1.SelectedItem 不是 string 類型,而是 object 類型。ComboBox 下拉顯示文字是通過調(diào)用 Object.ToString() 方法實現(xiàn)的。

            C語言轉(zhuǎn)換為VB.NET

            Option Explicit On

            Option Strict On

            Imports System

            Module Program

            Sub Main()

            Dim y,m,t As Integer

            begin:

            ' 輸入數(shù)據(jù)時一行一個

            y=CInt(Console.ReadLine())

            m=CInt(Console.ReadLine())

            t=CInt(Console.ReadLine())

            If y

            200 Then

            Console.WriteLine("ERROR")

            goto begin

            End If

            pr(y,m,t)

            Console.Write("Press any key to continue . . . ")

            Console.ReadKey(True)

            End Sub

            Function pr(y As Integer,m As Integer,t As Integer) As Integer

            Dim ye,[Me],i As Integer

            ye=CInt((m+t-2)/12+y)

            [Me]=(m+t-2) Mod 12+1

            End If

            End Function

            Function mday(y As Integer,m As Integer) As Integer

            Dim day As Integer()={0,31,28,31,30,31,30,31,31,30,31,30,31}

            Dim ad As I

            本文名稱:c轉(zhuǎn)換成vb.net,c轉(zhuǎn)換成co的化學方程式
            地址分享:http://www.jbt999.com/article20/phjejo.html

            成都網(wǎng)站建設公司_創(chuàng)新互聯(lián),為您提供用戶體驗網(wǎng)站排名、面包屑導航、標簽優(yōu)化軟件開發(fā)、網(wǎng)站策劃

            廣告

            聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:[email protected]。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

            成都網(wǎng)站建設公司

              <del id="d4fwx"><form id="d4fwx"></form></del>
              <del id="d4fwx"><form id="d4fwx"></form></del><del id="d4fwx"><form id="d4fwx"></form></del>

                    <code id="d4fwx"><abbr id="d4fwx"></abbr></code>
                  • 无码破解日韩AV无码 | 美国精品一区 | 在线亚洲网站 | 亚洲精品国产精品国自产曰本 | 欧美特级AAAAAA特黄高清 |