2009年4月26日 星期日

指標觀念

int *a ; //指標式宣告
int b=10 ;

a=&b; //only can write by this way #no *a=xxx

cout<<"*a"<<*a; //輸出10
cout<<"a="<<a; //輸出b的址

2009年4月14日 星期二

在BCB界面上show訊息


由label output:

Form1->Label1->Caption=AnsiString(iFrameCount);

由Memo output:
Form1->Memo1->Lines->Text=S;

由Edit get value:
int angle=StrToInt(Edit1->Text);