This comilated code has determined my confidence in VB.NET.

xiaoxiao2021-03-06  68

I want to search for a code converter on Google, but I have learned this website that makes 大 大 奶 网: http://www.vbconversions.com/topten.aspx (Don't forget to right click and then open in a new window !) Ten Topten reasons in the crown, where the first one, especially the classic - C # code is faster than VB.NET. It raised an example of a number of programs (only providing only VB code without giving C # versions, I really don't know how he concluded), and the time to bite C # is half a time than VB. many. I really can't help but be curious, fight the danger of poisoning, downloading its VB source program (you have to eat, you can go down, you don't want to be 歪: http://www.vbconversions. COM / SIEVE.ZIP). The following code, I just want a hilarious ...... Private Sub llStart_LinkClicked (ByVal sender As System.Object, ByVal e As _ System.Windows.Forms.LinkLabelLinkClickedEventArgs) _ Handles llStart.LinkClicked If IsNumeric (Me.txtMaxNbr.Text) = False Then Msgbox ("Max Nbr Must Be Numeric!", _ MsgboxStyle.exclamation, _ "Max Nbr Not Numeric" RETURN END IF

DIM N, I, J N = CINT (Me.txtMaxnbr.Text) 'He actually wants to apply for such a large array, looking at the official, guess what he wants to do. DIM Z (N) DIM STARTTIME AS DATETIME = Now

'INITIALIZE ARRAY' This step is purely unsatisfactory! He didn't know if the VB ranked initialization was zero? For i = 0 to n z (i) = 0 Next

'Mark Multiples of i

'Use this method to seek quality, the bow is two words! For i = 2 to n / 2 for j = 2 * i to n Step i z (j) = 1 Next Next NEXT

'Count unmarked Numbers, Which Are Primes Dim NBR = 0

'Since then, search for an array for i = 2 to n if z (i) = 0 THEN NBR = 1 End if Next

DIM TS AS New TimeSpan (now.ticks - starttime.ticks)

'Nothing to say, I saw this I can only smir, me.lblnbrons.text = nbr me.ltime.text = Ts.toTringend Sub really I don't know how to have such a 人 皇 皇 地 网 网 网 算The code (淌 心心 can you go to the South University to apply for professor huh), then there is no ridiculous conclusion without the basis. To be honest, after reading this "Topone", I don't want to see it behind. My confidence has increased! ! ! When the PS is written, the sound from the crazy cattle dormitory window - I heard that the Chinese team has been 7: 0 leading Hong Kong team, you said that Hong Kong does not put water and kill me, I don't believe it - how to happen tonight? So many ridiculous things?

转载请注明原文地址:https://www.9cbs.com/read-90625.html

New Post(0)