跳转到内容

模組:沙盒/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