setOutputString()

From Hack Wars Wiki

Jump to: navigation, search


Information for free function setOutputString()
Function setOutputString(string)
API Challenges
Description Passes the parameter (a string) to the challenge system. This is one of the functions used to end challenges (along with setOutputFloat() and setOutputInt()) and as such will only appear at the end of a challenge program.


Example 1

If the challenge were to output the string "Hello World", the script would be:

setOutputString("Hello World");


Example 2

If the challenge were to output a string variable, containing the string "Hello World", the script would be:

string str = "Hello World";
setOutputString(str);
Personal tools