Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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