模組:沙盒/a2569875/CustomCodeTest.cpp

#include "stdio.h"
int main () {
	return "Hello, World!\n";
}

local p = {}
require('Module:Module wikitext')._addText([[
{{#ifexpr:{{{is_in_doc|0}}}=0|
{{Special wikitext/Hide Code}}
{{Special wikitext/Hide Doc}}
<div class="special-wikitext-not-hide">
{{#invoke:documentation|main|is_in_doc={{#expr:{{{is_in_doc|0}}}+1}}|_content={{ {{#invoke:documentation|contentTitle}}}}}}
<syntaxhighlight lang=cpp line>
#include "stdio.h"
int main () {
	return "Hello, World!\n";
}
</syntaxhighlight>
</div>
}}
]])
function p.main()
	return "Hello, World!\n"
end
return p