Name: Anonymous 2017-12-17 22:25
It is time for another challenge. This time you have to write a programme that will wrap its input in quotes, not necessarily only the ``faggot quotes''.
INPUT: A string in your language's native string type that can support all of the quotation marks characters (see bottom). If the native string is an ASCII string, another type may be used.
Input is read from stdin. Additionally a command line parameter may be specified. The argument is a positive integer preceded by
OUTPUT: The input string wrapped in n pairs of distinct quotation marks. A default of 3 is assumed should the parameter not be provided. The quotation marks are chosen randomly. You may use your language/s or system standard PRNG. If n > number of all possible quotation sets, use all of them.
EXAMPLES: (assuming the executable is named
CHARACTER LIST
One set per line, first the opening character then the closing
There is also one special case where the items are multiple characters. The opening string is `` and the closing '' (known commonly as faggot quotes).
Good luck!
INPUT: A string in your language's native string type that can support all of the quotation marks characters (see bottom). If the native string is an ASCII string, another type may be used.
Input is read from stdin. Additionally a command line parameter may be specified. The argument is a positive integer preceded by
-.
OUTPUT: The input string wrapped in n pairs of distinct quotation marks. A default of 3 is assumed should the parameter not be provided. The quotation marks are chosen randomly. You may use your language/s or system standard PRNG. If n > number of all possible quotation sets, use all of them.
EXAMPLES: (assuming the executable is named
fq
)echo "anux" | fq=>
«“‹anux›”»
echo "anux" | fq -1=>
【anux】
echo "anux" | fq -1=>
``anux''
echo "anux" | fq -0=>
anux
CHARACTER LIST
One set per line, first the opening character then the closing
""
“”
‘’
‹›
«»
【】
❛❜
❝❞
There is also one special case where the items are multiple characters. The opening string is `` and the closing '' (known commonly as faggot quotes).
Good luck!