===============[ 義語 ]============================
節目: 嗨義大利
講師: Dorina Alimonti
http://203.64.188.76/auto/find_result.asp?casename=%B6%D9%B8q%A4j%A7Q&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
===============[ 日語 ]============================
節目: Yinka生活日語會話
講師: 孫寅華
http://203.64.188.76/auto/find_result.asp?casename=Yinka%A5%CD%AC%A1%A4%E9%BBy%B7%7C%B8%DC&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
===============[ 客語 ]============================
節目: 哈拉哈客
講師: 張鎮坤.宋菁玲.張民.古嫈
http://203.64.188.76/auto/find_result.asp?casename=%AB%A2%A9%D4%AB%A2%AB%C8&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
===============[ 英語 ]============================
節目: 空中英語教室
講師: Kaylah Woody等
http://203.64.188.76/auto/find_result.asp?casename=%AA%C5%A4%A4%AD%5E%BBy%B1%D0%AB%C7&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
節目: 英語你我他-文法篇
講師: 方巨琴楊理強
http://203.64.188.76/auto/find_result.asp?casename=%AD%5E%BBy%A7A%A7%DA%A5L-%A4%E5%AAk%BDg&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
節目: 大家說英語
講師: Gabe Harbour
http://203.64.188.76/auto/find_result.asp?casename=%A4j%AEa%BB%A1%AD%5E%BBy&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
節目: Magic English
講師: 曾麗娜.呂佳珊
http://203.64.188.76/auto/find_result.asp?casename=MagicEnglish&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
節目: English Follow Me
講師: 英語輔導團
http://203.64.188.76/auto/find_result.asp?casename=EnglishFollowMe&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
===============[ 法語 ]============================
節目: 生活法語一
講師: 楊淑娟
http://203.64.188.76/auto/find_result.asp?casename=%A5%CD%AC%A1%AAk%BBy%A4%40&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
===============[ 台語 ]============================
節目: 台語小學堂
講師: 林偉華.高明賢
http://203.64.188.76/auto/find_result.asp?casename=%A5x%BBy%A4p%BE%C7%B0%F3&year1=93&month1=1&day1=1&year2=100&month2=12&day2=31&AMFM=0
來源:http://www.wretch.cc/blog/aqur17/32667827
2011-03-07
2011-03-02
Adobe Flash Player 無法安裝 註冊失敗的解決
主要是 windows 註冊表有 權限被鎖了
- 下載安裝SubInACL
- 下載 reset_fp10.zip
- 解壓縮 到 C:\Program Files\Windows Resource Kits\Tools\ 目錄下
- 雙擊開啟 reset_fp10.cmd
- SubInACL運行時請勿使用其他程式
- 運行完結時將會看到 "Press any key to continue"
- 重新安裝 Adobe Flash Player
原文:http://kb2.adobe.com/cps/494/cpsid_49419.html
How to compile MFC code in Visual C++ Express - CodeProject
在express 中 開發c++ 時 發生 afxadv.h 找不到 請看底下教學
How to compile MFC code in Visual C++ Express - CodeProject
2011-03-01
JAVA 及 AS3 語法的比對
Concept/Language Construct | Java 5.0 | ActionScript 3.0 |
Class library packaging | .jar | .swc |
Inheritance | class Employee extends Person{…} | class Employee extends Person{…} |
Variable declaration and initialization | String firstName=」John」; Date shipDate=new Date(); int i; int a, b=10; double salary; | var firstName:String=」John」; var shipDate:Date=new Date(); var i:int; var a:int, b:int=10; var salary:Number; |
Undeclared variables | n/a | It's an equivalent to the wild card type notation *. If you declare a variable but do not specify its type, the * type will apply. A default value: undefined var myVar:*; |
Variable scopes | block: declared within curly braces, local: declared within a method or a block member: declared on the class level no global variables | No block scope: the minimal scope is a function local: declared within a function member: declared on the class level If a variable is declared outside of any function or class definition, it has global scope. |
Strings | Immutable, store sequences of two-byte Unicode characters | Immutable, store sequences of two-byte Unicode characters |
Terminating statements with semicolons | A must | If you write one statement per line you can omit it. |
Strict equality operator | n/a | === for strict non-equality use !== |
Constant qualifier | The keyword final final int STATE=」NY」; | The keyword const const STATE:int =」NY」; |
Type checking | Static (checked at compile time) | Dynamic (checked at run-time) and static (it's so called 『strict mode', which is default in Flex Builder) |
Type check operator | instanceof | is – checks data type, i.e. if (myVar is String){…} The is operator is a replacement of older instanceof |
The as operator | n/a | Similar to is operator, but returns not Boolean, but the result of expression: var orderId:String=」123」; var orderIdN:Number=orderId as Number; trace(orderIdN);//prints 123 |
Primitives | byte, int, long, float, double,short, boolean, char | all primitives in ActionScript are objects. Boolean, int, uint, Number, String The following lines are equivalent; var age:int = 25; var age:int = new int(25); |
Complex types | n/a | Array, Date, Error, Function, RegExp, XML, and XMLList |
Array declaration and instantiation | int quarterResults[]; quarterResults = new int[4]; int quarterResults[]={25,33,56,84}; | var quarterResults:Array =new Array(); or var quarterResults:Array=[]; var quarterResults:Array= [25, 33, 56, 84]; AS3 also has associative arrays that uses named elements instead of numeric indexes (similar to Hashtable). |
The top class in the inheritance tree | Object | Object |
Casting syntax: cast the class Object to Person: | Person p=(Person) myObject; | var p:Person= Person(myObject); or var p:Person= myObject as Person; |
upcasting | class Xyz extends Abc{} Abc myObj = new Xyz(); | class Xyz extends Abc{} var myObj:Abc=new Xyz(); |
Un-typed variable | n/a | var myObject:* var myObject: |
packages | package com.xyz; class myClass {…} | package com.xyz{ class myClass{…} } ActionScript packages can include not only classes, but separate functions as well |
Class access levels | public, private, protected if none is specified, classes have package access level | public, private, protected if none is specified, classes have internalaccess level (similar to package access level in Java) |
Custom access levels: namespaces | n/a | Similar to XML namespaces. namespace abc; abc function myCalc(){} or abc::myCalc(){} use namespace abc ; |
Console output | System.out.println(); | // in debug mode only trace(); |
imports | import com.abc.*; import com.abc.MyClass; | import com.abc.*; import com.abc.MyClass; packages must be imported even if the class names are fully qualified in the code. |
Unordered key-value pairs | Hashtable, Map Hashtable friends = new Hashtable(); friends.put(「good」, 「Mary」); friends.put(「best」, 「Bill」); friends.put(「bad」, 「Masha」); String bestFriend= friends.get(「best」); // bestFriend is Bill | Associative Arrays Allows referencing its elements by names instead of indexes. var friends:Array=new Array(); friends["good"]=」Mary」; friends["best"]=」Bill」; friends["bad"]=」Masha」; var bestFriend:String= friends[「best」] friends.best=」Alex」; Another syntax: var car:Object = {make:」Toyota」, model:」Camry」}; trace (car["make"], car.model); // Output: Toyota Camry |
Hoisting | n/a | Compiler moves all variable declarations to the top of the function, so you can use a variable name even before it's been explicitly declared in the code. |
Instantiation objects from classes | Customer cmr = new Customer(); Class cls = Class.forName(「Customer」); Object myObj= cls.newInstance(); | var cmr:Customer = new Customer(); var cls:Class = flash.util.getClassByName(「Customer」); var myObj:Object = new cls(); |
Private classes | private class myClass{…} | There is no private classes in AS3. |
Private constructors | Supported. Typical use: singleton classes. | Not available. Implementation of private constructors is postponed as they are not the part of the ECMAScript standard yet. To create a Singleton, use public static getInstance(), which sets a private flag instanceExists after the first instantiation. Check this flag in the public constructor, and if instanceExists==true, throw an error. |
Class and file names | A file can have multiple class declarations, but only one of them can be public, and the file must have the same name as this class. | A file can have multiple class declarations, but only one of them can be placed inside the package declaration, and the file must have the same name as this class. |
What can be placed in a package | Classes and interfaces | Classes, interfaces, variables, functions, namespaces, and executable statements. |
Dynamic classes (define an object that can be altered at runtime by adding or changing properties and methods). | n/a | dynamic class Person { var name:String; } //Dynamically add a variable // and a function var p:Person = new Person(); p.name=」Joe」; p.age=25; p.printMe = function () { trace (p.name, p.age); } p.printMe(); // Joe 25 |
function closures | n/a. Closure is a proposed addition to Java 7. | myButton.addEventListener(「click」, myMethod); A closure is an object that represents a snapshot of a function with its lexical context (variable's values, objects in the scope). A function closure can be passed as an argument and executed without being a part of any object |
Abstract classes | supported | n/a |
Function overriding | supported | Supported. You must use the override qualifier |
Function overloading | supported | Not supported. |
Interfaces | class A implements B{…} interfaces can contain method declarations and final variables. | class A implements B{…} interfaces can contain only function declarations. |
Exception handling | Keywords: try, catch, throw, finally, throws Uncaught exceptions are propagated to the calling method. | Keywords: try, catch, throw, finally A method does not have to declare exceptions. Can throw not only Error objects, but also numbers: throw 25.3; Flash Player terminates the script in case of uncaught exception. |
Regular expressions | Supported | Supported |
Java 常見的錯誤訊息
1. java.lang.NullPointerException
這個異常大家肯定都經常遇到,異常的解釋是"程序遇上了空指針",簡單地
說就是調用了未經初始化的對象或者是不存在的對象,這個錯誤經常出現在創建
圖片,調用數組這些操作中,比如圖片未經初始化,或者圖片創建時的路徑錯誤
等等。對數組操作中出現空指針,很多情況下是一些剛開始學習編程的朋友常犯
的錯誤,即把數組的初始化和數組元素的初始化混淆起來了。數組的初始化是對
數組分配需要的空間,而初始化後的數組,其中的元素並沒有實例化,依然是空
的,所以還需要對每個元素都進行初始化(如果要調用的話)
2. java.lang.ClassNotFoundException
這個異常是很多原本在JB等開發環境中開發的程序員,把JB下的程序包放在
WTk下編譯經常出現的問題,異常的解釋是"指定的類不存在",這裡主要考慮一下
類的名稱和路徑是否正確即可,如果是在JB下做的程序包,一般都是默認加上
Package的,所以轉到WTK下後要注意把Package的路徑加上。
3. java.lang.ArithmeticException
這個異常的解釋是"數學運算異常",比如程序中出現了除以零這樣的運算就
會出這樣的異常,對這種異常,大家就要好好檢查一下自己程序中涉及到數學運
算的地方,公式是不是有不妥了。
4. java.lang.ArrayIndexOutOfBoundsException
這個異常相信很多朋友也經常遇到過,異常的解釋是"數組下標越界",現在
程序中大多都有對數組的操作,因此在調用數組的時候一定要認真檢查,看自己
調用的下標是不是超出了數組的範圍,一般來說,顯示(即直接用常數當下標)
調用不太容易出這樣的錯,但隱式(即用變量表示下標)調用就經常出錯了,還
有一種情況,是程序中定義的數組的長度是通過某些特定方法決定的,不是事先
聲明的,這個時候,最好先查看一下數組的length,以免出現這個異常。
5. java.lang.IllegalArgumentException
這個異常的解釋是"方法的參數錯誤",很多J2ME的類庫中的方法在一些情況
下都會引發這樣的錯誤,比如音量調節方法中的音量參數如果寫成負數就會出現
這個異常,再比如g.setColor(int red,int green,int blue)這個方法中的三個
值,如果有超過255的也會出現這個異常,因此一旦發現這個異常,我們要做
的,就是趕緊去檢查一下方法調用中的參數傳遞是不是出現了錯誤。
6. java.lang.IllegalAccessException
這個異常的解釋是"沒有訪問權限",當應用程序要調用一個類,但當前的方
法即沒有對該類的訪問權限便會出現這個異常。對程序中用了Package的情況下要
注意這個異常。
來源:http://www.wretch.cc/blog/chungzon/17369015
這個異常大家肯定都經常遇到,異常的解釋是"程序遇上了空指針",簡單地
說就是調用了未經初始化的對象或者是不存在的對象,這個錯誤經常出現在創建
圖片,調用數組這些操作中,比如圖片未經初始化,或者圖片創建時的路徑錯誤
等等。對數組操作中出現空指針,很多情況下是一些剛開始學習編程的朋友常犯
的錯誤,即把數組的初始化和數組元素的初始化混淆起來了。數組的初始化是對
數組分配需要的空間,而初始化後的數組,其中的元素並沒有實例化,依然是空
的,所以還需要對每個元素都進行初始化(如果要調用的話)
2. java.lang.ClassNotFoundException
這個異常是很多原本在JB等開發環境中開發的程序員,把JB下的程序包放在
WTk下編譯經常出現的問題,異常的解釋是"指定的類不存在",這裡主要考慮一下
類的名稱和路徑是否正確即可,如果是在JB下做的程序包,一般都是默認加上
Package的,所以轉到WTK下後要注意把Package的路徑加上。
3. java.lang.ArithmeticException
這個異常的解釋是"數學運算異常",比如程序中出現了除以零這樣的運算就
會出這樣的異常,對這種異常,大家就要好好檢查一下自己程序中涉及到數學運
算的地方,公式是不是有不妥了。
4. java.lang.ArrayIndexOutOfBoundsException
這個異常相信很多朋友也經常遇到過,異常的解釋是"數組下標越界",現在
程序中大多都有對數組的操作,因此在調用數組的時候一定要認真檢查,看自己
調用的下標是不是超出了數組的範圍,一般來說,顯示(即直接用常數當下標)
調用不太容易出這樣的錯,但隱式(即用變量表示下標)調用就經常出錯了,還
有一種情況,是程序中定義的數組的長度是通過某些特定方法決定的,不是事先
聲明的,這個時候,最好先查看一下數組的length,以免出現這個異常。
5. java.lang.IllegalArgumentException
這個異常的解釋是"方法的參數錯誤",很多J2ME的類庫中的方法在一些情況
下都會引發這樣的錯誤,比如音量調節方法中的音量參數如果寫成負數就會出現
這個異常,再比如g.setColor(int red,int green,int blue)這個方法中的三個
值,如果有超過255的也會出現這個異常,因此一旦發現這個異常,我們要做
的,就是趕緊去檢查一下方法調用中的參數傳遞是不是出現了錯誤。
6. java.lang.IllegalAccessException
這個異常的解釋是"沒有訪問權限",當應用程序要調用一個類,但當前的方
法即沒有對該類的訪問權限便會出現這個異常。對程序中用了Package的情況下要
注意這個異常。
來源:http://www.wretch.cc/blog/chungzon/17369015
訂閱:
文章 (Atom)