目前分類:未分類文章 (18)
- Nov 29 Sat 2014 00:37
程式設計工藝大師(Master of Computer Programming)
- Nov 28 Fri 2014 15:15
創造成功奇蹟演講 梁凱恩 老師+心得
- Apr 10 Fri 2015 15:38
2015/04/10 按鈕
- Mar 27 Fri 2015 15:02
2015/03/27
class test
{
- Mar 20 Fri 2015 15:33
2015/03/20 Java & javascript
- Mar 13 Fri 2015 14:56
2015/03/13
<html>
<head>
<title> The First Example: Hello, World </title>
</head>
<body>
<h2> This line is HTML </h2>
<script language="JavaScript">
<!--
document.write("Hello.陳俊佑 World.This sentence is written using JavaScript.");
// Text on the right of 2 slashes is comment
/* This is comment
that occur more than 1 line
*/
//-->
</script>
<noscript>
Sorry, but your browser doesn't run JavaScript.
</noscript>
<h2> This line is HTML </h2>
</body>
</html>
- Mar 06 Fri 2015 14:47
2015/03/06
class Test
{
public static void main(String[] args)
{
System.out.println("_____*_____");
System.out.println("____***____");
System.out.println("___*****___");
System.out.println("__*******__");
System.out.println("_____*_____");
System.out.println("_____*_____");
}
- Dec 12 Fri 2014 16:16
第10週2014/12/12 open CV
- Dec 05 Fri 2014 15:34
第9週2014/12/05 C#VB亂數打亂和排序數字陣列
- Nov 28 Fri 2014 15:12
第8週2014/11/28 數字拼盤
- Nov 14 Fri 2014 15:23
第7週2014/11/14 九九乘法表
- Oct 31 Fri 2014 15:19
第6週2014/10/31 圈叉遊戲
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
- Oct 24 Fri 2014 15:32
第5週2014/10/24 井字遊戲
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
- Oct 17 Fri 2014 15:29
第4週2014/10/17 賽車
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
- Oct 03 Fri 2014 15:38
第3週2014/10/03 C#按鍵移動
『目標』假設一button為車子,藉由按鍵觸發使其左右移動
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
int c;
int d = 1;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
button1.Left = 100*c;
if(button1.Left>460)
{
d = -1;
}
if (button1.Left < 0)
{
d = 1;
}
c = c + d;
}
}
}
- Sep 26 Fri 2014 15:39
第2週2014/09/26 C#紅綠燈
『目標』建立紅綠燈燈號轉換功能,藉由按鍵觸發開關
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
int c, r;
public Form1()
{
InitializeComponent();
c = 0;
}
private void button2_Click(object sender, EventArgs e)
{
c = c + 1;
r = c % 3;
label1.Text = "r=" + r;
if (r == 0)
{
button1.Location = new Point(0, 0);
button2.BackColor = Color.Black;
}
if (r == 1)
{
button1.Location = new Point(0, 0);
button2.BackColor = Color.Black;
}
else
{
button1.Location = new Point(100, 0);
button2.BackColor = Color.Yellow;
}
}
private void button3_Click(object sender, EventArgs e)
{
c = c + 1;
r = c % 3;
label1.Text = "r=" + r;
if (r == 0)
{
button1.Location = new Point(0, 0);
button3.BackColor = Color.Black;
}
if (r == 1)
{
button1.Location = new Point(0, 0);
button3.BackColor = Color.Red;
}
else
{
button1.Location = new Point(100, 0);
button3.BackColor = Color.Black;
}
}
private void timer1_Tick(object sender, EventArgs e)
{
c = c + 1;
r = c % 3;
label1.Text = "r=" + r;
if (r >= 1)
{
button3.BackColor = Color.Black;
button4.BackColor = Color.Yellow;
button5.BackColor = Color.Black;
if (r == 2)
{
button3.BackColor = Color.Red;
button4.BackColor = Color.Black;
button5.BackColor = Color.Black;
}
}
else
{
button3.BackColor = Color.Black;
button4.BackColor = Color.Black;
button5.BackColor = Color.Green;
}
}
}
}
- Sep 26 Fri 2014 15:27
第2週2014/09/26 按鍵移動
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication1
{
public partial class Form1 : Form
{
int c;
int d = 1;
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
button1.Left = 100*c;
if(button1.Left>460)
{
d = -1;
}
if (button1.Left < 0)
{
d = 1;
}
c = c + d;
}
}
}
- Sep 19 Fri 2014 00:15
第1週2014/09/19 button移動、Unity