先看這邊!!!XD
歡迎多多使用左下角的"噗噗噗噗浪"參一咖!!一起噗浪!!!!!

目前分類:C#上課程式/筆記 (10)

瀏覽方式: 標題列表 簡短摘要


private void button1_Click(object sender, System.EventArgs e)
{
string Msg="";

fatfather 發表在 痞客邦 留言(0) 人氣()

*完成10-5頁的練習
*定義Vector的結構,以存放三維向量(x,y,z)
*重載加法
 Vec1+Vec2=(x1,y1,z1)+(x2,y2,z2)=(x1+x2,y1+y2,z1+z2)
*重載乘法

fatfather 發表在 痞客邦 留言(0) 人氣()

 

 
*撰寫一Employee的基底類別,裡面有一個ComputeBonus的抽象方法,參數為MonthSalary和WorkMonths,型別為int傳回值為float

fatfather 發表在 痞客邦 留言(0) 人氣()

public static void Main()
{
int[] a={10, 3, 7, 5, 2, 8, 4, 11, 6, 0, 1, 9};
int x=0;
for (int i=0;i<12;i++)

fatfather 發表在 痞客邦 留言(0) 人氣()

homework2
  private void button1_Click(object sender, System.EventArgs e)
  {
   textBox3.Text=GCD(System.Convert.ToInt32(textBox1.Text),System.Convert.ToInt32(textBox2.Text)).ToString();
  }

fatfather 發表在 痞客邦 留言(0) 人氣()

 **homework-01**
計算1/2+3/4+7/6+13/8+.........+n/100
提示:先分析分子和分母變化的規則性。分母都是偶數,分子恰好是前一項的分子和分母相加。
 
(1st ver.)

fatfather 發表在 痞客邦 留言(0) 人氣()

1.輸入1~100的數字如果大於60顯示及格 低於60顯示不及格
int x = System.Convert.ToInt32(textBox1.Text);
if (x>=60)
MessageBox.Show("及格","結果");
else

fatfather 發表在 痞客邦 留言(0) 人氣()

System.DateTime T;
T=System.DateTime.Now;
Console.WriteLine(System.DateTime.Now);
Console.WriteLine(T.AddHours(5).AddMinutes(20));

fatfather 發表在 痞客邦 留言(0) 人氣()

int x = System.Convert.ToInt32(textBox1.Text);
int y = System.Convert.ToInt32(textBox1.Text);
string z= System.Convert.ToString(x*y);
MessageBox.Show(z,"結果"); int x = System.Convert.ToInt32(textBox1.Text); string y=System.Convert.ToString(x*x*3.14); string z=System.Convert.ToString(x*2*3.14); MessageBox.Show("圓的面積="+y+"\n圓的周長="+z,"結果");

fatfather 發表在 痞客邦 留言(0) 人氣()


include
using namespace std;

class Base
{

fatfather 發表在 痞客邦 留言(2) 人氣()