The younger brother beginner c + +
Now there is a two dimensional array, array with values, how to make a 2 d array subscript as x, y, of 3 d surface array values for z axis??
Hope everybody to help me, thank you very much!!!!!!!!!!
CodePudding user response:
Do with Teechart surface figure,No value z or z values, the surface have no change,
CodePudding user response:
Value is not to say that the array Z axisCodePudding user response:
Design in the Teechart to join a TSurfaceSeries;TSurfaceSeries * Series1;
Or dynamically at runtime to join:
# include "TeeSurfa. HPP
"TSurfaceSeries * Series1=new TSurfaceSeries (Chart1);
Chart1 - & gt; AddSeries (Series1);
Then the 3 d points in curved surface:
Int Z [100] [100];
Series1 - & gt; The Clear ();
For (int x=0; X & lt; 100; + + x)
For (int y=0; Y & lt; 100; + + y)
Series1 - & gt; AddXYZ (x, y, x/x, y);
Series1 - & gt; EndUpdate ();
CodePudding user response:
Point a lot of, use BeginUpdate (), EndUpdate (); To speed up