Difference between revisions of "Input"
From Mesham
Jump to navigationJump to searchm |
|||
Line 3: | Line 3: | ||
This input(i) function will prompt the user for input via stdin, the result being placed into ''i'' | This input(i) function will prompt the user for input via stdin, the result being placed into ''i'' | ||
− | * '''Pass:''' A variable for the input to be written into, of type String | + | * '''Pass:''' A variable for the input to be written into, of type [[String]] |
* '''Returns:''' Nothing | * '''Returns:''' Nothing | ||
Revision as of 13:09, 13 January 2013
Overview
This input(i) function will prompt the user for input via stdin, the result being placed into i
- Pass: A variable for the input to be written into, of type String
- Returns: Nothing
Example
#include <io> var f:String; input(f); print("You wrote: "+f+"\n");