Simple question, Hard Awnser :
1) Seg is my class
class seg {
... nanan anan anan
}
2) i do
seg Dot[20];
i want to have 20 in a variable
i tryed [] overloading and didnt work
and constructor wont be usefull ( seg Dot[20] = {20,20,20,20,20, etc...})
so how coud i get the Bound of the array when its declared.
What i want to do,
im just a c++ newbie (im good in vB), i want to make a graph (working on the shortest path algorthim)
since the max number of segments that start from a point cant be larger than the Number of Plot - 1 i want to declare a Dynamic array with will be the optimal size ( int *Segment, Segment = new int [NumberOfPlot-1] ). Got it ?...no ok well if u understand me or not just add a reply ...please
Thanks
Guillaume
1) Seg is my class
class seg {
... nanan anan anan
}
2) i do
seg Dot[20];
i want to have 20 in a variable
i tryed [] overloading and didnt work
and constructor wont be usefull ( seg Dot[20] = {20,20,20,20,20, etc...})
so how coud i get the Bound of the array when its declared.
What i want to do,
im just a c++ newbie (im good in vB), i want to make a graph (working on the shortest path algorthim)
since the max number of segments that start from a point cant be larger than the Number of Plot - 1 i want to declare a Dynamic array with will be the optimal size ( int *Segment, Segment = new int [NumberOfPlot-1] ). Got it ?...no ok well if u understand me or not just add a reply ...please
Thanks
Guillaume