[Archive!] Pure mathematics, physics, chemistry, etc.: brain-training problems not related to trade in any way - page 316
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
I have a task for programmers (those who are not yet in the course of this task).
Write an MQL script that outputs its source code to a file.
You cannot read from the file.
It is possible not the script itself, but the approach to writing it.
на mql нереально, нет работы с памятью.
I think MQL is enough.
"The problem can be solved in any programming language that has the ability to output an arbitrary computable string of text."
It is not possible to read from the file.
I don't know about MQL, but in VB the solution is this:
Generate a CTRL+PRINTSCR keystroke capturing a screenshot to clipboard. Save the clipboard as a file.
Voila, the quine in MQL. Please test it :)))
We should add MQLs to the wiki https://ru.wikipedia.org/wiki/Quine:)
Ах, ну да. Забыл про CharToStr()
Вуаля, квайн на MQL. Прошу тестировать:)))
Sawyer, you're ahead of the curve! I'm working on the same thing. I'm also trying to fit it into one line. So far it's two slashes.
See trailer.