是什麼符號?
意味着下面的代碼:符號`?`在表達式maxY =(maxY> pt.Y)中的含義是什麼?美星:pt.Y;`
for(int i = 0 ; i < Hpts.BranchCount;i++)
{ foreach(Point3d pr in Hpts.Branches[i]){
minX = (minX > pt.X) ? pt.X : minX;
minY = (minY > pt.Y) ? pt.Y : minX;
maxX = (maxX > pt.X) ? maxX : pt.X;
maxY = (maxY > pt.Y) ? maxY : pt.Y;
}
}
http://msdn.microsoft.com/en-us/library/ty67wk28.aspx – AlexD