| ²é¿´: 351 | »Ø¸´: 0 | |||
| µ±Ç°Ö÷ÌâÒѾ´æµµ¡£ | |||
sdlj8051½ð³æ (ÖøÃûдÊÖ)
|
[½»Á÷]
[תÌù].Net¼Ó»ìÏýÆ÷µÄ·ÖÎö
|
||
|
ÏÈÌùÒ»¶Î´úÂë,ÊÇÒ»¸ö¼òµ¥µÄÔËËã.È»ºóÓûìÏýÆ÷½øÐÐÒµÎñÂß¼µÄ»ìÏý... »ù±¾ÉÏûÓÐÆðµ½×÷ÓÃ,´úÂëÈçÏÂ. Dim a, b, c, d As String d = 50 c = d b = c a = b b = 20 d = 30 Dim s As Decimal s = a + b + c * d MsgBox(s) -------------------------------- ¶Ô±È»ìÏýºó -------------------------------- private void a(object A_0, EventArgs A_1) { string text1; string text2; string text3; string text4; decimal num1; text4 = StringType.FromInteger(50); text3 = text4; text2 = text3; text1 = text2; text2 = StringType.FromInteger(20); text4 = StringType.FromInteger(30); num1 = new decimal((DoubleType.FromString(string.Concat(text1, text2)) + (DoubleType.FromString(text3) * DoubleType.FromString(text4)))); Interaction.MsgBox(num1, 0, null); } -------------------------- ÏÂÃæ¿ªÊ¼ÂýÂý»ìÏýÁË,¿´¿´... Ô´´úÂëΪ: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a, b, c, d As Integer d = 50 c = d b = c a = b b = 20 d = 30 Dim s As Decimal Swap(d, c) s = add(a, add(b, c)) * c MsgBox(s) End Sub Function add(ByVal a As Integer, ByVal b As Integer) As Integer Return a + b End Function Function Swap(ByRef a As Integer, ByRef b As Integer) Dim aa As Integer aa = a a = b b = aa End Function -------------------------------------------- Ö®ºóΪ -------------------------------------------- private void a(object A_0, EventArgs A_1) { int num1; int num2; int num3; int num4; decimal num5; num4 = 50; num3 = num4; num2 = num3; num1 = num2; num2 = 20; num4 = 30; this.a(&(num4), &(num3)); num5 = new decimal((this.a(num1, this.a(num2, num3)) * num3)); Interaction.MsgBox(num5, 0, null); } public object a(ref int A_0, ref int A_1) { int num1; object obj1; num1 = A_0; A_0 = A_1; A_1 = num1; return obj1; } public int a(int A_0, int A_1) { int num1; return (A_0 + A_1); } ----------------------------- ¶ÁÒ»¶Á?ÊDz»ÊÇÓÐЩÀ§ÄÑÁËЩ,µ±È»,ÎÒÊǰѴúÂë¶¼Ö±½ÓÕ³³öÀ´ÁË,Äã¶ÁÆðÀ´»¹·½±ãµã,µ«ÊÇ...Èç¹û´Ó¼¸Ê®¸ö»òÊÇÉÏÃæ¸ö.... ±È·½Ëµ,ÓÐÒâµÄÖÆ×÷Ò»¸ö´óµÄClass,ÔÙ°ÑClassÖлìÏý...ÍÛ.Í·Í´µÄÊÂÀ´ÁË. ËãÁË,²»¼ÌÐøÁË,ûʱ¼äȥдºÜ¸´ÔÓµÄ...·´Õý´ó¼ÒÐËÒ»·´Èý°É. ¾öÇϾÍÊǵ÷ÓÃ...¹¦ÄÜдÔÚº¯Êý,д³ÉÀà,ʹÓöÔÏó.ÀàÓëÀàÖ®¼ä¿ÉÄÜÓйØÏµ...µ±È»,»¹ÊǽṹÂß¼µÚÒ»...²»ÒªÎªÁ˹ÊÒâ»ìÏý¸ãµ½×Ô¼º¶¼¿´²»¶®...»ò¿´ÆðÀ´Âé·³. ÓÐЩÊÂÇé¿ÉÒÔÔÚÏîÄ¿Íê³ÉµÄÄǶÎʱ¼äÔÙ×ö Óв»ÕýÈ·Ö®´¦,ÇëÖ¸³ö...ÎÒ¶ÔÕâ¸öÑо¿Ò²ºÜ·ôdz,Èç¹ûÓÐʲôÏë·¨Ò²¿ÉÒÔÌá³ö...˵²»¶¨ÔÛÃÇ×Ô¼º»¹¿ÉÒÔ¸ã¸öʲô±ÈÕâ¸ö¸üºÃµÄ¶«¶«... [ Last edited by sdlj8051 on 2006-10-6 at 11:37 ] |
» ²ÂÄãϲ»¶
»¯¹¤Ñ§Ë¶294·Ö£¬Çóµ¼Ê¦ÊÕÁô
ÒѾÓÐ29È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ10È˻ظ´
¿¼ÑÐÇóµ÷¼Á
ÒѾÓÐ13È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ3È˻ظ´
È˹¤ÖÇÄÜ320µ÷¼Á08¹¤À໹Óлú»áÂð
ÒѾÓÐ17È˻ظ´
¿¼ÑÐÓ¢Ò»ÊýÒ»338·Ö
ÒѾÓÐ10È˻ظ´
ÇóÖúµ÷¼Á£¬¿çµ÷
ÒѾÓÐ15È˻ظ´
085600²ÄÁÏÓ뻯¹¤329·ÖÇóµ÷¼Á
ÒѾÓÐ20È˻ظ´
085600²ÄÁÏÓ뻯¹¤349·ÖÇóµ÷¼Á
ÒѾÓÐ15È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ13È˻ظ´














»Ø¸´´ËÂ¥