🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.modula2
Article #1760

HELP!! beginner question on how to read in a line of numbers....

#1760
From: Shawn E Thompson
Date: Sun, 03 Mar 1991 17:16
36 lines
1663 bytes

Hi all,

I am an experienced Fortran and Basic programmer, but an
absolute novice with Pascal & Modula2. I am playing with
Metrowerks Modula2 compiler. I have the following line of
data:

x1 x2 x3 x4 x5

which I type in. How do I read these numbers all in as
separate numbers?? I know in F77 & Basic the spaces
delimit them as separate numbers and my code would
just be to read in those numbers directly.

These numbers *MUST* be typed on one line, instead of
each followed by a <CR>. I know this involves the InOut
module, but please give me suggestions ASAP. 


Also, what if some of them are integers (like the first one),
and others are real numbers?? How do I handle that ??


Also, is there an inexpensive Modula2 compiler for the IBM
PC, I am using Metrowerks on the Mac.


Thanks for help


Shawn E. Thompson                         | CAD Engineering       (716)891-3375
v087mxgb@ubvms.cc.buffalo.edu             | Leica, Incorporated
University @ Buffalo                      | PO Box 123
Graduate School of Mechanical Engineering | Buffalo, NY 14240-0123
Technical Details
Message-ID: <62930@eerie.acsu.Buffalo.EDU>
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ub!ubvmsa.cc.buffalo.edu!v087mxgb

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!ub!ubvmsa.cc.buffalo.edu!v087mxgb
From: v087mxgb@ubvmsa.cc.buffalo.edu (Shawn E Thompson)
Newsgroups: comp.lang.modula2
Subject: HELP!! beginner question on how to read in a line of numbers....
Message-ID: <62930@eerie.acsu.Buffalo.EDU>
Date: 3 Mar 91 17:16:42 GMT
Sender: news@acsu.Buffalo.EDU
Reply-To: v087mxgb@ubvmsa.cc.buffalo.edu
Organization: University at Buffalo
Lines: 36
Nntp-Posting-Host: ubvmsa.cc.buffalo.edu
News-Software: VAX/VMS VNEWS V1.3-4.4