Errors, bugs, questions - page 1643

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Compile error: ')'. - not all control paths return a value
You don't have all branches of the code returning a value:
Or like this:
You don't have all branches of the code returning a value.
In the example he gives, all of them. The only way to exit while(true) is with break (which he doesn't have) or return.
I'm not going to argue. But the compiler error message ')' - not all control paths return a value, says otherwise.
Try the same thing in C++
What does C++ have to do with it?
....
Looked at your code more closely. You missed a mistake: the return value by the operator return should be written in brackets. return(0) but you wrote return 0;
What does C++ have to do with it?
Looked at your code more closely. You missed a mistake - the return value by return operator should be written in brackets. return(0) but you wrote return 0;
While C++ acts as a reference in this case
So you write in C++ and compile it all in mql?
Why the extra brackets?
This is the syntax of mql language.
So you write in C++ and compile it all in mql?
This is the syntax of the mql language.
You can return a value without brackets. Just try it.
So you write in C++ and compile it all in mql?
This is the syntax of the mql language.