請問有關指標的問題 |
尚未結案
|
chiehjen
一般會員 發表:8 回覆:4 積分:2 註冊:2003-12-30 發送簡訊給我 |
各位高手,我現在不懂 double **tao是什麼意思,我知道 *tao是指標的意思,
請問**tao是什麼意思呢? 感謝。class如下
class cities { public: // use different arrays to sotre tao and visibility to gain // a little bit speed up and flexibility (as for ATSP) double **tao, **visibility, **city; // coordinates of cities int nofc, // number of cities nofa; // number of ants int **ants, **allowed; int * optimal_solution, * best_solution; int cycle_count_when_best_found; double optimal_length, best_length; double alpha, beta, evaporation, Q, tolerance; // parameters double * prob; // public: double * lengths; int best_ant; bool loaded; AnsiString file_loaded; cities(int nc, int na, double pa, double pb, double pe, double pq, double pt); ~cities(); void change_p(double pa, double pb, double pe, double pq, double pt); void generate_city_map(); void load_city_map(AnsiString pf, AnsiString tf); void ini_visibility_and_tao(); bool one_cycle(); void paint_result(); }; class TASForm : public TForm { __published: // IDE-managed Components TButton *Button_go; TButton *Button_step; TGroupBox *GroupBox1; TEdit *Edit_cities; TEdit *Edit_ants; TEdit *Edit_alpha; TEdit *Edit_beta; TEdit *Edit_eva; TEdit *Edit_Q; TEdit *Edit_tolerance; TLabel *Label1; TLabel *Label2; TLabel *Label3; TLabel *Label4; TLabel *Label5; TLabel *Label6; TLabel *Label7; TBevel *Bevel1; TEdit *Edit_steps; TLabel *Label8; TStatusBar *StatusBar; TCheckBox *CheckBox_random; TEdit *Edit_seed; TLabel *Label9; TCheckBox *CheckBox_bestlength; TOpenDialog *OpenDialog1; TButton *Button_load; TImage *Image1; TButton *Button_write; TLabel *Label10; void __fastcall Button_goClick(TObject *Sender); void __fastcall Button_stepClick(TObject *Sender); void __fastcall Button_loadClick(TObject *Sender); void __fastcall Show_About(TObject *Sender); void __fastcall FormPaint(TObject *Sender); void __fastcall Change(TObject *Sender); void __fastcall write_result(TObject *Sender); private: // User declarations public: // User declarations __fastcall TASForm(TComponent* Owner); cities * AS; bool AS_start; unsigned int step_count, steps_to_run; FILE * output_file; }; //--------------------------------------------------------------------------- extern TASForm *ASForm; //--------------------------------------------------------------------------- #endif |
liangnet
中階會員 發表:19 回覆:148 積分:83 註冊:2004-01-03 發送簡訊給我 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |