Hi Everyone! Just seeking very quick help with a piece of code that i suspect is the source of errors in my program. Is it OK to use an arithmetic operation within "for" loop as a condition???
Foe example:
for(int i=k; i<k+21; i++)
{
statements.
}
where "k" had been predefined.
Any help will be highly appreciated. Thanks.
Kenneth Njuguna:
Hi Everyone! Just seeking very quick help with a piece of code that i suspect is the source of errors in my program. Is it OK to use an arithmetic operation within "for" loop as a condition???
Foe example:
for(int i=k; i<k+21; i++)
{
statements.
}
where "k" had been predefined.
Any help will be highly appreciated. Thanks.
If there are errors, I assume, it's a problem in the logic of your statements. ;)
Hi Everyone! Just seeking very quick help with a piece of code that i suspect is the source of errors in my program. Is it OK to use an arithmetic operation within "for" loop as a condition???
Foe example:
for(int i=k; i<k+21; i++)
{
statements.
}
where "k" had been predefined.
Any help will be highly appreciated. Thanks.
Not a problem I've seen functions be used before.
for(int i=k; i<OrdersTotal(); i++)
And if you can use a function a little bit of arithmetic would be child's play.
Without a doubt one of the most helpful online communities and much appreciated for/to everyone!!!
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi Everyone! Just seeking very quick help with a piece of code that i suspect is the source of errors in my program. Is it OK to use an arithmetic operation within "for" loop as a condition???
Foe example:
for(int i=k; i<k+21; i++)
{
statements.
}
where "k" had been predefined.
Any help will be highly appreciated. Thanks.