博客來網路書店查詢

書名

博客來網路書店查詢

星期四, 10月 29, 2009

規劃MySQL函數介紹專欄

之前於RunPC雜誌所介紹的MySQL屬於大範圍的資訊分享,
預計年底或明年將一系列介紹MySQL內函數的使用。
MySQL擁有相當多的函數, MySQL內就可以作基本的字串
分析..條件判斷..數值分析..這些動作 其實不必由PHP 進行..
MySQL就可以作了。

星期一, 10月 26, 2009

C++課程:例外處理之修改

以下程式碼為上課提供並做修改的部分:

#include
#include
using namespace std;
class DivideByZero {
public:
DivideByZero(int n, int d) : num(n), denom(d), message("Divide by zero") {}
~DivideByZero()
{ cout << "Bye~ " << endl; }
int getNumerator() {return num;}
int getDenominator() {return denom;}
string getMessage() {return message;}
private:
int num;
int denom;
string message; };
int main()
{
int x = 5;
int y = 0;
int result;
try { if (y == 0) { throw DivideByZero(x, y); }
result = x/y; }
catch (DivideByZero e) {
cout << e.getMessage() << endl;
cout << "Numerator: " << e.getNumerator() << endl;
cout << "Denominator: " << e.getDenominator() << endl; }
cout << "Goodbye" << endl;
return 0;
}
這裡的問題是解構子會被執行兩次。
其實Throw 時及 new 出來的DivideByZero物件的建構子均有執行到的,
只是目前只有提供 DivideByZero(int n, int d)這一個建構子,
所以沒有傳參數進去就不會使用這個建構子。

改成以下語法就可以減少物件的產生:

try
{
if (y == 0)
{
throw new DivideByZero(x, y);
}
result = x/y;
}
catch (DivideByZero *e)
{
cout <<>getMessage() << endl;
cout << "Numerator: " <<>getNumerator() << endl;
cout << "Denominator: " <<>getDenominator() << endl;
delete e;
}
cout << "Goodbye" << endl;

ASP.Net 課程中使用Access與SQL Server Express檔案

ASP.Net 課程中使用Access與SQL Server Express檔案。
但這兩種方式均不太適合用於實際對外服務上,資料庫大
小或資料庫同時連線人數均有若干限制。
目前進階課程已經是全部都講資料庫相關工具了,我想我會
再做修改,儘量於最後一天課程能轉換到SQL Server Express
上操作,讓大家有個概念。

Plurk與Facebook帳號

目前我的Plurk與Facebook帳號:
Plurk為:http://www.plurk.com/jiannrongwork
Facebook為:http://www.facebook.com/yeh.jiannrong
歡迎各位將我加入..原則上我發佈的消息會以巨匠課程為主

如果各位有需要,可以把我加入吧..

星期日, 10月 25, 2009

2009年11月課表

星期日星期一星期二星期三星期四星期五星期六
1




2




3




4




5




6




7




8




9




10
東區 C-1
11




12
東區 C-2
13




14
講師受訓,暫不安排



15




16




17
東區 C-3
18




19
東區 C-4
20




21
另有其他活動安排


22
另有其他活動安排
23




24
東區 C-5
25




26
東區 C-6
27

ww

28




29




30