Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
readstat - read one statement from the input stream
Calling Sequence
readstat()
readstat(prompt)
readstat(ditto3, ditto2, ditto1)
readstat(prompt, ditto3, ditto2, ditto1)
Parameters
prompt
-
string to be used as a prompt
ditto3
value to be used for %%%
ditto2
value to be used for %%
ditto1
value to be used for %
Description
The function readstat reads the next statement from the input stream (the terminal or a file) and returns the value of that statement.
If a prompt is specified, it will be displayed.
If the ditto3, ditto2, and ditto1 arguments are given, they must be lists, and the values of their contents will be substituted for any occurrences of %%%, %%, and % respectively in the statement read.
If an incomplete statement is entered, readstat will redisplay the prompt to allow further input. This will continue until a complete statement is entered.
If a syntax error is discovered, readstat will produce a syntax error message, and redisplay the prompt, expecting a new statement.
The readstat function always reads as many entire lines as needed to parse a complete statement. If the last line contains additional characters after the end of the complete statement, a warning is generated, and the remaining input is discarded. Therefore, multiple statements per line are not permitted.
Some Examples
x := readstat("x will be assigned ");
readstat("Something: ",[A],[B],[C]);
readstat("Hello? ");
See Also
history, parse, read, readline, scanf, showtime
Download Help Document