Difference between revisions of "ZCubes/Quine Computing"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 4: Line 4:
 
==Video==
 
==Video==
 
<br/>
 
<br/>
{{#ev:youtube|atnD2XEmER0|480|left|Brocards Problem & Brown Numbers}}
+
{{#ev:youtube|atnD2XEmER0|480|left|Quine Computing}}
 
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
 
<br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/><br/>
  
 +
 +
==ZCubes code==
 +
<pre>
 +
 +
function q(a,b,c )
 +
{console.log(eval(arguments.callee.name)+"");
 +
a=1;
 +
b=34;
 +
return(a+b)
 +
};
 +
q()
 +
 +
</pre>
  
 
<br/>
 
<br/>

Latest revision as of 05:19, 17 September 2021

Quine Computing


Quines are computer programs that produces the source code of the program itself as the output. Quines may be used for creating self-replicating or self-modifying programs. This video demonstrates how to create quines using Z.

Video


Quine Computing















ZCubes code


function q(a,b,c )
{console.log(eval(arguments.callee.name)+"");
a=1;
b=34;
return(a+b)
};
q()




© Copyright 1996-2021, ZCubes, Inc.