Ok, no problem...
My code is under GPL license
Ok, i will begin with main function in my looping. This function determine the flow of a river in vector format.
I saw a problem maybe at the beginning of this code. For example, in debug compile, this loop run 100 times. In release compile, this run 100 times too, but leaves the first return.
But in both compiles I used the EVEN CODE and EVEN INPUT.
So, this is the beginning of the main function of my loop...
bool CHydroFlow::DetermineFlow(const int indSHPObj)
{
pSHPObject pHidLine = HidLn->SHPObjs[indSHPObj];
int FlowHidLine = HidLn->Flows[indSHPObj];
int OrderStrahlerHidLine = 0;
int OrderShreveHidLine = 0;
if (HFParams.HFOptions.OrderStrahler) {
OrderStrahlerHidLine = HidLn->OrdersStrahler[indSHPObj];
};
if (HFParams.HFOptions.OrderShreve) {
OrderShreveHidLine = HidLn->OrdersShreve[indSHPObj];
};
if ((FlowHidLine != 0) && (OrderStrahlerHidLine != 0) || (!HFParams.HFOptions.OrderStrahler)
&& ((OrderShreveHidLine != 0) || (!HFParams.HFOptions.OrderShreve)))
return true; //If above is true, then nothing to do
bool CHydroFlow::DetermineFlow(const int indSHPObj)
{
pSHPObject pHidLine = HidLn->SHPObjs[indSHPObj];
int FlowHidLine = HidLn->Flows[indSHPObj];
int OrderStrahlerHidLine = 0;
int OrderShreveHidLine = 0;
if (HFParams.HFOptions.OrderStrahler) {
OrderStrahlerHidLine = HidLn->OrdersStrahler[indSHPObj];
};
if (HFParams.HFOptions.OrderShreve) {
OrderShreveHidLine = HidLn->OrdersShreve[indSHPObj];
};
if ((FlowHidLine != 0) && (OrderStrahlerHidLine != 0) || (!HFParams.HFOptions.OrderStrahler)
&& ((OrderShreveHidLine != 0) || (!HFParams.HFOptions.OrderShreve)))
return true; //If above is true, then nothing to do
To copy to clipboard, switch view to plain text mode
<CONTINUE...>
Bookmarks