請跟我說~

今天沒上國文課沒被我統計到要抽學伴的人~



想抽的~



留個言~



我們被罵了

親愛的各位同學



今天



就在我亂連網誌的時候



不小心逛到學長那邊去了



本來想說很開心的感謝大家照我說的去支持學長



沒讓我坐上這個我現在還不想做的位置



誰知道



我看到了一篇讓我很驚訝的回應(在新會長網誌上的)



是什麼勒?



以下是回應的內容:



"雞巴勒~~

剛上完材料阿~~

去找小狼~~也就是一甲那邊



他們有人說跟我走去投票

投過再投一次

賤耶!!

一點都不公平的投票

大電一甲!!賤!!"



唉呀哎呀!!



學長沒刷牙?



喔不!!這不是重點



咱們 可是徹徹底底被誤會了呢



鄉親阿



大家可是要幫我申冤



幫忙辯解阿



我那時候說的應該是:



"走!!大家跟我ㄧ起去投票!!



記得喔!!



要投1號!!



投過了?再投一次阿!!



反正全部投1號就對了"



我如果沒有癡呆的話



應該是這樣說吧



這讓我



有點小小失落阿!!



有句話叫什麼來著



是狗咬呂洞賓?



還是



好心被雷親?



還有另一句叫



狗仗人勢?



原諒我記不太得了XD



我都嘆氣了



這真是令我寒心阿



還用"賤"這個字



這麼重的罪



小人我可是擔待不起呀



大家回應一下阿



證明我說的話句句屬實



天地為證 日月可表XD



還有請學長要刷牙



以下附上網址:



http://www.wretch.cc/blog/kiracarlos&article_id=12560286



順便申明一下



新會長其實人還不錯



大家不要會錯意 搞錯對象



以後要多多跟他配合



免得人家説咱們



這個沒有風度



那個愛找藉狗



錯了!!是藉口



落人口實的事



還是不要隨便去做



重點是 要有回應阿



其實是因為大家都不留言



版很乾XD

舊版Office可以開Office2007檔案

自從微軟推出最新版Office 2007文書處理軟體之後,越來越多人都會遇到舊版Office軟體無法開啟2007版的docx、xlsx及pptx等格式的問題,這些新的檔案格式分別是Word 2007、Excel 2007與PowerPoint 2007存檔時預設的檔案格式。如果你也想讓你的舊版Office軟體也可以讀寫Office 2007的文件,那該怎麼做呢?





當然,不用花錢升級到Office 2007或買新軟體,只要在你的電腦中加裝個「檔案格式相容性套件」即可,這個程式是微軟為了讓舊版軟體向上支援新的文件格式用的,安裝完之後你的舊版Office不會感覺到有哪裡不一樣,不過遇到docx、xlsx及pptx等新版的檔案格式時,可以直接按兩下開啟、編輯,不會再出現奇怪的錯誤囉。









軟體名稱:Microsoft Office Word、Excel 及 PowerPoint 2007 檔案格式相容性套件

軟體版本:3

軟體語言:繁體中文

軟體性質:免費軟體

檔案大小:27.6MB

系統支援:支援微軟Office 2000/XP/2003等版本

官方網站:按這裡

軟體下載:按這裡



轉貼網址:http://briian.com/?p=5193

系學會正副會長改選

親愛的各位同學



記得星期一中午



到二棟三樓往土木系館



那邊的電機系學會會辦



去投票喔



當然不是投我啦



如果對這屆系學會不是很滿意



就換個大學部的來當當



不然好像新一屆加入的都是四技部的



請記得手牽手踴躍投票去



千萬別讓您的權益睡著囉



(好像在打廣告XD)

程式設計作業

哲宇提供

/* Lesson 2 - Understanding Messages and Events

* Pravin Paratey ()

**/



#include <windows.h>



HWND hwndMain;//Main window handle



// Callback function

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);



// Windows entry point

int WINAPI

WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow)

{

MSG msg; // MSG structure to store messages

WNDCLASSEX wcx; // WINDOW class information



// Initialize the struct to zero

ZeroMemory(&wcx,sizeof(WNDCLASSEX));

wcx.cbSize = sizeof(WNDCLASSEX); // Window size. Must always be sizeof(WNDCLASSEX)

wcx.style = CS_HREDRAW|CS_VREDRAW |CS_DBLCLKS ; // Class styles

wcx.lpfnWndProc = (WNDPROC)MainWndProc; // Pointer to the callback procedure

wcx.cbClsExtra = 0; // Extra byte to allocate following the wndclassex structure

wcx.cbWndExtra = 0; // Extra byte to allocate following an instance of the structure

wcx.hInstance = hInstance; // Instance of the application

wcx.hIcon = NULL; // Class Icon

wcx.hCursor = LoadCursor(NULL, IDC_ARROW); // Class Cursor

wcx.hbrBackground = (HBRUSH)(COLOR_WINDOW); // Background brush

wcx.lpszMenuName = NULL; // Menu resource

wcx.lpszClassName = "Lesson2"; // Name of this class

wcx.hIconSm = NULL; // Small icon for this class



// Register this window class with MS-Windows

if (!RegisterClassEx(&wcx))

return 0;



// Create the window

hwndMain = CreateWindowEx(0, //Extended window style

"Lesson2", // Window class name

"Lesson 2 - A simple win32 application", // Window title

WS_OVERLAPPEDWINDOW, // Window style

CW_USEDEFAULT,CW_USEDEFAULT, // (x,y) pos of the window

CW_USEDEFAULT,CW_USEDEFAULT, // Width and height of the window

HWND_DESKTOP, // HWND of the parent window (can be null also)

NULL, // Handle to menu

hInstance, // Handle to application instance

NULL); // Pointer to window creation data



// Check if window creation was successful

if (!hwndMain)

return 0;



// Make the window visible

ShowWindow(hwndMain,SW_SHOW);



// Process messages coming to this window

while (GetMessage(&msg,NULL,0,0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

// return value to the system

return msg.wParam;

}



// Callback procedure

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam)

{

HDChMyDC;

PAINTSTRUCTps;

charszText[] = "畫出圓形及其半徑";

intnLen = sizeof(szText)-1;



int num = 360;//描繪的點數

int r = 100;//半徑

int i,x,y;





switch(msg)

{

case WM_PAINT:

hMyDC=BeginPaint(hwnd, &ps);

//當BeginPaint()函式成功執行完畢,就會傳回DC的識別代碼,因此我們必須宣告hMyDC 變數用以儲存這個回傳的DC識別代碼。



TextOut(hMyDC,150,100,szText,nLen);



//(1)畫線

// MoveToEx(hMyDC, 100, 20, NULL);

// LineTo(hMyDC, 100, 122);



//(2)畫三角形

// MoveToEx(hMyDC, 60, 20, NULL);

// LineTo(hMyDC, 60, 122);

// LineTo(hMyDC, 264, 122);

// LineTo(hMyDC, 264, 20);

// LineTo(hMyDC, 60, 20);





//(3)畫圓

SetPixel(hMyDC,200,150,RGB(0,255,0)); //畫圓心



for (i = 0;i < num; i++){

x= (200)+i; //利用x=cos(i),y=sin(i) 的公式畫圓

y= (150)+(100)*sin(-i*3.14159/180*2);

SetPixel(hMyDC,x,y,RGB(0,255,0));



x= (200)-i; //利用x=cos(i),y=sin(i) 的公式畫圓

y= (150)+(100)*sin(i*3.14159/180*2);

SetPixel(hMyDC,x,y,RGB(0,255,0));

}

MoveToEx(hMyDC,(400/2),(300/2),NULL);//線段的起點

LineTo(hMyDC,600,150);//畫線到(x,y)座標

MoveToEx(hMyDC,(400/2),(300/2),NULL);//線段的起點

LineTo(hMyDC,200,0);//畫線到(x,y)座標

MoveToEx(hMyDC,(400/2),(300/2),NULL);//線段的起點

LineTo(hMyDC,0,150);//畫線到(x,y)座標

MoveToEx(hMyDC,(400/2),(300/2),NULL);//線段的起點

LineTo(hMyDC,200,600);//畫線到(x,y)座標

EndPaint(hwnd, &ps);



break;

case WM_CLOSE:

DestroyWindow(hwnd);

break;

case WM_DESTROY:

PostQuitMessage(0);

break;

default:

return DefWindowProc(hwnd, msg, wParam, lParam);

}

}



int nTopXY(UINT wnd_XY, UINT wnd_Dim)

{

int resl;

resl=((wnd_Dim/2)-(wnd_XY/2));

return resl;

}















哲宇提供2

/* Lesson 2 - Understanding Messages and Events

* Pravin Paratey ()

**/



#include <windows.h>



HWND hwndMain;//Main window handle



// Callback function

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);



// Windows entry point

int WINAPI

WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow)

{

MSG msg; // MSG structure to store messages

WNDCLASSEX wcx; // WINDOW class information



// Initialize the struct to zero

ZeroMemory(&wcx,sizeof(WNDCLASSEX));

wcx.cbSize = sizeof(WNDCLASSEX); // Window size. Must always be sizeof(WNDCLASSEX)

wcx.style = CS_HREDRAW|CS_VREDRAW |CS_DBLCLKS ; // Class styles

wcx.lpfnWndProc = (WNDPROC)MainWndProc; // Pointer to the callback procedure

wcx.cbClsExtra = 0; // Extra byte to allocate following the wndclassex structure

wcx.cbWndExtra = 0; // Extra byte to allocate following an instance of the structure

wcx.hInstance = hInstance; // Instance of the application

wcx.hIcon = NULL; // Class Icon

wcx.hCursor = LoadCursor(NULL, IDC_ARROW); // Class Cursor

wcx.hbrBackground = (HBRUSH)(COLOR_WINDOW); // Background brush

wcx.lpszMenuName = NULL; // Menu resource

wcx.lpszClassName = "Lesson3"; // Name of this class

wcx.hIconSm = NULL; // Small icon for this class



// Register this window class with MS-Windows

if (!RegisterClassEx(&wcx))

return 0;



// Create the window

hwndMain = CreateWindowEx(0, //Extended window style

"Lesson3", // Window class name

"Lesson 3 - A simple win32 application: draw sin function", // Window title

WS_OVERLAPPEDWINDOW, // Window style

CW_USEDEFAULT,CW_USEDEFAULT, // (x,y) pos of the window

CW_USEDEFAULT,CW_USEDEFAULT, // Width and height of the window

HWND_DESKTOP, // HWND of the parent window (can be null also)

NULL, // Handle to menu

hInstance, // Handle to application instance

NULL); // Pointer to window creation data



// Check if window creation was successful

if (!hwndMain)

return 0;



// Make the window visible

ShowWindow(hwndMain,SW_SHOW);



// Process messages coming to this window

while (GetMessage(&msg,NULL,0,0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

// return value to the system

return msg.wParam;

}



// Callback procedure

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam)

{

HDChMyDC;

PAINTSTRUCTps;

double pi=3.14159;

charszText[] = "圖為60Sin(x)圖形,週期2Pi";

charszText2[] = "X";

charszText3[] = "Y";

intnLen = sizeof(szText)-1;

intnLen2 = sizeof(szText2)-1;

intnLen3 = sizeof(szText3)-1;



int num = 360;//描繪的點數

int i,x,y;

switch (msg)

{

case WM_PAINT:

hMyDC=BeginPaint(hwnd, &ps);

//當BeginPaint()函式成功執行完畢,就會傳回DC的識別代碼,因此我們必須宣告hMyDC 變數用以儲存這個回傳的DC識別代碼。



TextOut(hMyDC,100,270,szText,nLen);

TextOut(hMyDC,num+110,250,szText2,nLen2);

TextOut(hMyDC,100,35,szText3,nLen3);



// 畫Y軸

MoveToEx(hMyDC, 100, 250, NULL);

LineTo(hMyDC, 100, 50);







//(3)畫Sin

SetPixel(hMyDC,100,250,RGB(0,0,255)); //畫原點



for (i = 0;i < num; i++){

x= (100)+(i);

y= (250)-(60*sin(i*pi/180)); //弳度要換成角度

SetPixel(hMyDC,x,y,RGB(255,0,0));

}





MoveToEx(hMyDC,(100),(250),NULL); //畫X軸

LineTo(hMyDC,i+100,250);

EndPaint(hwnd, &ps);



break;

case WM_DESTROY:

PostQuitMessage(0);

break;



default:

// Call the default window handler

return DefWindowProc(hwnd,msg,wParam,lParam);

}

return 0;

}













野田提供

/* Lesson 2 - Understanding Messages and Events

* Pravin Paratey ()

**/



#include <windows.h>

#include <math.h>





HWND hwndMain;//Main window handle



// Callback function

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam);



// Windows entry point

int WINAPI

WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, INT nCmdShow)

{

MSG msg; // MSG structure to store messages

WNDCLASSEX wcx; // WINDOW class information



// Initialize the struct to zero

ZeroMemory(&wcx,sizeof(WNDCLASSEX));

wcx.cbSize = sizeof(WNDCLASSEX); // Window size. Must always be sizeof(WNDCLASSEX)

wcx.style = CS_HREDRAW|CS_VREDRAW |CS_DBLCLKS ; // Class styles

wcx.lpfnWndProc = (WNDPROC)MainWndProc; // Pointer to the callback procedure

wcx.cbClsExtra = 0; // Extra byte to allocate following the wndclassex structure

wcx.cbWndExtra = 0; // Extra byte to allocate following an instance of the structure

wcx.hInstance = hInstance; // Instance of the application

wcx.hIcon = NULL; // Class Icon

wcx.hCursor = LoadCursor(NULL, IDC_ARROW); // Class Cursor

wcx.hbrBackground = (HBRUSH)(COLOR_WINDOW); // Background brush

wcx.lpszMenuName = NULL; // Menu resource

wcx.lpszClassName = "Lesson3"; // Name of this class

wcx.hIconSm = NULL; // Small icon for this class



// Register this window class with MS-Windows

if (!RegisterClassEx(&wcx))

return 0;



// Create the window

hwndMain = CreateWindowEx(0, //Extended window style

"Lesson3", // Window class name

"Lesson 3 - A simple win32 application: draw circle", // Window title

WS_OVERLAPPEDWINDOW, // Window style

CW_USEDEFAULT,CW_USEDEFAULT, // (x,y) pos of the window

CW_USEDEFAULT,CW_USEDEFAULT, // Width and height of the window

HWND_DESKTOP, // HWND of the parent window (can be null also)

NULL, // Handle to menu

hInstance, // Handle to application instance

NULL); // Pointer to window creation data



// Check if window creation was successful

if (!hwndMain)

return 0;



// Make the window visible

ShowWindow(hwndMain,SW_SHOW);



// Process messages coming to this window

while (GetMessage(&msg,NULL,0,0))

{

TranslateMessage(&msg);

DispatchMessage(&msg);

}

// return value to the system

return msg.wParam;

}



// Callback procedure

LRESULT CALLBACK MainWndProc(HWND hwnd,UINT msg,WPARAM wParam,LPARAM lParam)

{

HDChMyDC;

PAINTSTRUCTps;

charszText[] = "y=r*sin(x)";

intnLen = sizeof(szText)-1;



int num = 3600;//描繪的點數

int r = 100;//半徑

int i,x,y;

switch (msg)

{

case WM_PAINT:

hMyDC=BeginPaint(hwnd, &ps);

//睛^eginPaint()函式成功執行完畢,就會傳回DC的識別代碼,因此我們必須宣告hMyDC 變數用以儲存這個回傳的DC識別代碼。



TextOut(hMyDC,300,50,szText,nLen);



//(1)畫線

// MoveToEx(hMyDC, 60, 20, NULL);

// LineTo(hMyDC, 264, 122);



//(2)畫三角形

// MoveToEx(hMyDC, 60, 20, NULL);

// LineTo(hMyDC, 60, 122);

// LineTo(hMyDC, 264, 122);

// LineTo(hMyDC, 60, 20);





//(3)畫?E

SetPixel(hMyDC,300,100,RGB(0,0,255));



for (i = 0;i < num; i++){

x= (100)+(i/6);

y= (200)-r*(sin(0.01*i));

SetPixel(hMyDC,x,y,RGB(255,0,0));

}



MoveToEx(hMyDC,(100),(50),NULL);

LineTo(hMyDC,100,350);

MoveToEx(hMyDC,(50),(200),NULL);

LineTo(hMyDC,800,200);



EndPaint(hwnd, &ps);



break;

case WM_DESTROY:

PostQuitMessage(0);

break;



default:

// Call the default window handler

return DefWindowProc(hwnd,msg,wParam,lParam);

}

return 0;

}

國文分組

國文老師說改變分組的方法



在個人選讀心得方面(期末交)

各自選擇自己想要的題目(七個題目任選一)

不受之前分的組限制



另外還要作組的報告(期中考前報告)

你們覺得就照已分好的組分比較好?

還是自己重新找組員比較好?

報告的方式二選一

1.演戲

2.上台講POWERPOINT



明天我還會再說一次

看要重分還是就之前分的組就好



給無法看office2007檔以及無法解壓的人

有人說無法看2007檔和下載完無法解壓縮



有以上這些問題的人 請跟我說一下 3Q



以後不管電路學參考答案還是其他科

我還是會用2007檔

畢竟2007可以打出特殊公式和其他功能





必看:國文分組的事

首先我決定改變國文分組的方法

在此先說聲抱歉



因為目前還沒有人跟我報組

所以我採取題目先選先贏的方式 PS:額滿就選其他題目

各自選自己的題目

而不用非得找齊6個人才能報組



題目是:

傾城之戀、美的覺醒、亞細亞的孤兒、邊城、

談教養、賴聲川的創意學、于丹的讀論語



明天我會在下課時再宣布一次

屆時再開始跟我登記題目



這禮拜大小事

禮拜四國文考試



禮拜五程式設計作業 老師網址



另外還有微積分作業(3/28下禮拜5交) 點我前往





導師說電路學老師從不小考

請大家養成陳老師說的33原則

課本讀三遍 習題寫三遍 例題寫三遍




明天交電路學作業

寫完作業可以對一下,請認真做完再對答案



電路學參考答案  點我(最終修正版)



感謝校正人員





國文分組

偉祥要我跟大家說



國文分組的事



希望大家能快點找好自己的組員



謝謝大家!!

交大開放課程

柏翔介紹的 



開放課程各科講義 點我 



微積分講義 點我



交大的課本好像跟我們用同一本,章節都一樣


程式作業(禮拜五驗收)

張富爵網站



星期五上課只要把程式碼放在隨身碟帶去就好



我直接PO程式碼出來 (PS:因為有人反映下載的檔案無法解壓縮)



呂哲宇的



#include <stdio.h>

#include <stdlib.h>



struct person

{

char name[20];

int age;

float height;

float weight;

};

int main(int argc, char *argv[])

{

struct person a[1];

int i,j;



for(i=0;i<1;i++)<br/>
{

printf("Please Input Name\n");

scanf("%s",&a[i].name);

printf("Please Input Age\n");

scanf("%d",&a[i].age);

printf("Please Input Height\n");

scanf("%f",&a[i].height);

printf("Please Input Weight\n");

scanf("%f",&a[i].weight);

}



for(j=0;j<1;j++)<br/>
{

printf("姓名:%s 年齡:%d 身高:%.1f 體重:%.1f\n",a[j].name,a[j].age,a[j].height,a[j].weight);

}



system("PAUSE");

return 0;

}





我的



#include <stdio.h>

#include <stdlib.h>



typedef struct s{

char c[10];

int i;

float f,f1;

}s;

int main(int argc, char *argv[])

{

s a; int b;

for(b=1;b<=5;b++){

printf("請輸入第%d個人姓名\n",b);

scanf("%s",a.c);

printf("請輸入第%d個人年齡\n",b);

scanf("%d",&a.i);

printf("請輸入第%d個人身高\n",b);

scanf("%f",&a.f);

printf("請輸入第%d個人體重\n",b);

scanf("%f",&a.f1);

printf("第%d個人資料如下:\n姓名:%s\n年齡:%d\n身高:%f\n體重:%f\n\n"

,b,a.c,a.i,a.f,a.f1);}

system("PAUSE");

return 0;

}








有疑問可以問我和呂哲宇

呂哲宇MSN: cheyu78122@hotmail.com (通訊錄上的是錯誤的 沒有r)



套句謝大的話:寫程式就是要多看 才會寫的好

不嫌棄的話 希望大家把自己寫的程式碼PO給我 我再放到網路分享



另外阿 對學藝這個幹部有什麼建議 請在此跟帖就行了!

不說的話 我也不知道 像上次會幫大家印微積分講義也是泰傑建議的



PS:這裡有個免費的免安裝截圖程式 可截取任意大小的視窗

讓大家截取程式的執行視窗更方便 不再只是按(ALT+)PRINT SCREEN在小畫家貼上

官網載點