?struct DTable{
?int *AttributeList;
?string **TableData;
?};
?用結構體定義函數出問題,未找到原因;
?DTable Crs::RecreateTable(vector <int> set)
?{
?return newtable;
?}
?結構體之間可以直接賦值;
初始化
?用malloc函數可以給二維指針初始化,
?new初始化,必須都是產量
?int *i=new int[1]? i=new(int) i=new int;
?string **m;
?m=(string **)malloc(8*sizeof(string));
?for(int i=0;i<8;i++)
?*(m+i)=(string *)malloc(5*sizeof(string));
14:40 2006-9-2