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.
Oh, right, I forgot about CharToStr(). Voila, the quine in MQL. Please test it :)))
int start(){string s="int start(){string s=;Print(StringSubstr(s,0,21),CharToStr(34),s,CharToStr(34),StringSubstr(s,21));return(0);}";Print(StringSubstr(s,0,21),CharToStr(34),s,CharToStr(34),StringSubstr(s,21));return(0);}
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
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.