Phantom Documentation

[Help Home] [Phantom Home]
InputInt

int InputInt(string)

Return Type: int
Parameters: string Prompt

Description:
InputInt prompts the user to enter an integer value and returns the input. The Prompt is displayed, after which an integer value must be entered. An error occurs if a non-integer is entered.

Example Code
1 >>int i = InputInt("Enter an your age: ");
Enter an your age: 42
2 >>disp(i);
42


 


Copyright 2000-2011 Phantom Automated Solutions