User:StDoodle/Test Function sandbox: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
mNo edit summary
imported>StDoodle
mNo edit summary
Line 16: Line 16:
title=Impressive Code |
title=Impressive Code |
description=The following code is awesome, as you may expect, since I'm awesome. |
description=The following code is awesome, as you may expect, since I'm awesome. |
code=
<syntaxhighlight lang="c">
int noob = 1337;
print("Stuff");
return noob.to_string();
</syntaxhighlight>}} |
code2={{User:StDoodle/Code_sandbox |
title=More Impressive Code |
description=The following code is also awesome; you should expect this. |
code=
<syntaxhighlight lang="c">
int noob = 1337;
print("Stuff");
return noob.to_string();
</syntaxhighlight>}} |
code3={{User:StDoodle/Code_sandbox |
description=Actually, this code is not so awesome. |
code=
code=
<syntaxhighlight lang="c">
<syntaxhighlight lang="c">

Revision as of 08:43, 25 February 2010


{{#customtitle:test_function()|test_function()}}

Function Syntax

string / buffer test_function(string text, int count)

string test_function(string text, int count, boolean test)

Where text is a stupid thing to parse.
Where count is a funky place to start.
Where test is to see if you want the function to happen.

This function does stuff.

And even more stuff (sometimes).

Impressive Code

The following code is awesome, as you may expect, since I'm awesome.

int noob = 1337;
print("Stuff");
return noob.to_string();

More Impressive Code

The following code is also awesome; you should expect this.

int noob = 1337;
print("Stuff");
return noob.to_string();

Actually, this code is not so awesome.

int noob = 1337;
print("Stuff");
return noob.to_string();