Difference between revisions of "Input"
From Mesham
Jump to navigationJump to search (Created page with '== Overview == This input[n] function will ask the user for input via stdin, the result being placed into ''n'' * '''Pass:''' A variable for the input to be written into, of ty…') |
|||
Line 1: | Line 1: | ||
== Overview == | == Overview == | ||
− | This input | + | 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 | ||
Line 8: | Line 8: | ||
== Example == | == Example == | ||
+ | #include <io> | ||
var f:String; | var f:String; | ||
− | input | + | input(f); |
− | print | + | print("You wrote: "+f+"\n"); |
[[Category:Function Library]] | [[Category:Function Library]] | ||
[[Category:IO Functions]] | [[Category:IO Functions]] |
Revision as of 13:07, 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");