程序代码:
struct PinInfo { char PinName[Max_Size]; char PinPoF[1]; float LO_LIMIT; float HI_LIMIT; float LO_SPEC; float HI_SPEC; float PinResult; char UNITS[1]; }; struct BIN { short int SoftBin; short int HwardBin; }; struct IC { PinInfo **ICData; //二維 char ItemType[1]; int PinNum; int PinTestTime; int ICNumber; short int X; short int Y; }; struct Site { IC **SiteData; //二維 int SiteCount; BIN **SiteBin; //二維 char SubTestName[Max_Size]; }; struct SubTest { Site **SubTestData; //二維 int SubTestNumber; }; struct Flow { SubTest **FlowData; //二維 int FlowNumber; }; .... void InitFlowStruct(Flow *Project)//从这开始就不会了.. { Project->FlowData = new SubTest*[SubCount]; for(int i=0;i<FlowCount;i++) { FlowData[i] = new SubTest[SubCount]; //InitSubTestStruct(Project->FlowData); } Project->FlowNumber = 0 ; } void main(int argc, char* argv[]) { Flow **ProjectD = new Flow*[FlowCount]; for(int i=0;i<FlowCount;i++) { ProjectD[i] = new Flow[FlowCount]; InitFlowStruct(ProjectD[i]); } }
VC6的二维多层结构阵列和VB6的二维多层结构阵列搞得有点混乱,不知道是不是因为监看视窗的显示不同所致
[ 本帖最后由 wube 于 2015-3-27 12:52 编辑 ]
不要選我當版主