超級簡單的,只顯示,不做任何作用orz
主函數:
package program;
import ui.*;
public class program {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
FirstWindow first=new FirstWindow();
first.show();
}
}
主函數:
package program;
import ui.*;
public class program {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
FirstWindow first=new FirstWindow();
first.show();
}
}
PR
終於拿到勞動手冊和退工單了,我終於能夠大吼一聲,阿拉是自由身!!!
說到這個做了一個半月多兩個月不到的工作,實在是既傷身又傷神,忍不住來個樹洞,於是有興趣的請往下看,沒有興趣的可以關掉。
說到這個做了一個半月多兩個月不到的工作,實在是既傷身又傷神,忍不住來個樹洞,於是有興趣的請往下看,沒有興趣的可以關掉。
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int i;
int a= Convert.ToInt32(Console.ReadLine());
int b= Convert.ToInt32(Console.ReadLine());
int c=0;
for (i = 0; i < 10; i++)
{
c = a + b;
a = b;
b = c;
}
Console.WriteLine(c);
Console.ReadLine();
}
}
阿拉怎麽會寫出伽傻的代碼來的,吐血死。
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int i;
int a= Convert.ToInt32(Console.ReadLine());
int b= Convert.ToInt32(Console.ReadLine());
int c=0;
for (i = 0; i < 10; i++)
{
c = a + b;
a = b;
b = c;
}
Console.WriteLine(c);
Console.ReadLine();
}
}
阿拉怎麽會寫出伽傻的代碼來的,吐血死。
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int i = 0;
int max=0;
max = Convert.ToInt32(Console.ReadLine());
while (i < 9)
{
i++;
int num;
num = Convert.ToInt32(Console.ReadLine());
if (num > max)
{
max=num;
}
}
Console.WriteLine(max);
Console.ReadLine();
}
}
}
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication3
{
class Program
{
static void Main(string[] args)
{
int i = 0;
int max=0;
max = Convert.ToInt32(Console.ReadLine());
while (i < 9)
{
i++;
int num;
num = Convert.ToInt32(Console.ReadLine());
if (num > max)
{
max=num;
}
}
Console.WriteLine(max);
Console.ReadLine();
}
}
}
C#寫的,只判斷了小寫,沒有判斷大寫字母,煩……
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
char n;
n = Convert.ToChar(Console.ReadLine());
switch (n)
{
case 'a':
Console.WriteLine("原音字母");
break;
case 'e':
Console.WriteLine("原音字母");
break;
case 'i':
Console.WriteLine("原音字母");
break;
case 'o':
Console.WriteLine("原音字母");
break;
case 'u':
Console.WriteLine("原音字母");
break;
default:
Console.WriteLine("other");
break;
}
Console.ReadLine();
}
}
}
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication2
{
class Program
{
static void Main(string[] args)
{
char n;
n = Convert.ToChar(Console.ReadLine());
switch (n)
{
case 'a':
Console.WriteLine("原音字母");
break;
case 'e':
Console.WriteLine("原音字母");
break;
case 'i':
Console.WriteLine("原音字母");
break;
case 'o':
Console.WriteLine("原音字母");
break;
case 'u':
Console.WriteLine("原音字母");
break;
default:
Console.WriteLine("other");
break;
}
Console.ReadLine();
}
}
}
プロフィール
HN:
伊兒
性別:
非公開
自己紹介:
伊兒ですにゃー
吃貨一只,懶蟲一只。
吃貨一只,懶蟲一只。
カレンダー
08 | 2024/09 | 10 |
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | 7 |
8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | 16 | 17 | 18 | 19 | 20 | 21 |
22 | 23 | 24 | 25 | 26 | 27 | 28 |
29 | 30 |
最新記事
(10/02)
(09/22)
(09/19)
(09/18)
(09/18)
(09/17)
(09/15)
(09/01)
(08/28)
(08/27)
最新コメント
[12/08 yrn1ksjv9q4]
[02/07 NONAME]
[02/07 山风]
[12/20 asian escorts dubai]
[11/14 NONAME]
カテゴリー
最新トラックバック
フリーエリア
ブログ内検索
P R
カウンター