![]() music |
![]() | OSdata.com |
stream input
summary
This subchapter looks at simpe input.
free computer programming text book projecttable of contents
|
![]() music |
![]() | OSdata.com |
This subchapter looks at simpe input.
free computer programming text book projecttable of contents
|
This subchapter is a stub section. It will be filled in with instructional material later. For now it serves the purpose of a place holder for the order of instruction.
Professors are invited to give feedback on both the proposed contents and the propsed order of this text book. Send commentary to Milo, PO Box 1361, Tustin, California, 92781, USA.
This subchapter looks at stream input.
Pascal eof(x) Pascal standard function that returns true if the end of file or end of data has been reached; otherwise returns false.
Pascal eoln(x) Pascal standard function that returns true if the end of line has been reached; otherwise returns false.
BASIC POS(x) BASIC library function that returns the current position of the video terminals cursor..
ALGOL has several common input procedures that allow the input of a character representation (such as from punched cards or teletype machines) of the major ALGOL data types.
The basic form is as follows:
inreal (input device, real varaible name);
The input device is an integer, which represents the inpput device or channel.
The real variable name is the name of a variable of real type that will receive the input.
The procedure starts reading from the designated input device until it finds a sequence of characters that form a valid real value. This character data is automtically translated into the internal real format and stored inthe designated variable.
A related procedure is called ininteger and has similar characteristics as inreal, except that it searches for a valid integer (in character representation) in the input stream and stores the translated integer into a variable with type integer.
ininteger (input device, integer varaible name);
42/2 The predefined environment of the language provides for input-output and other capabilities by means of standard library packages. Input-output is supported for values of user-defined as well as of predefined types. Standard means of representing values in display form are also provided. :Ada-Europes Ada Reference Manual: Introduction: Language Summary See legal information
2 Finally, a predefined environment of standard packages is provided, including facilities for, among others, input-output, string manipulation, numeric elementary functions, and random number generation. :Ada-Europes Ada Reference Manual: Section 1: General See legal information
Input/Output (I/O) instructions are used to input data from peripherals, output data to peripherals, or read/write input/output controls. Early computers used special hardware to handle I/O devices. The trend in modern computers is to map I/O devices in memory, allowing the direct use of any instruction that operates on memory for handling I/O.
Information on the devices for the hypothetical MIX processors input/output instructions.
| unit number | peripheral | block size | control |
|---|---|---|---|
| t | Tape unit no. i (0 | 100 words | M=0, tape rewound; M < 0, skip back M records; M > 0, skip forward M records |
| d | Disk or drum unit no. d (8 | 100 words | position device according to X-register (extension) |
| 16 | Card reader | 16 words | |
| 17 | Card punch | 16 words | |
| 18 | Printer | 24 words | IOC 0(18) skips printer to top of following page |
| 19 | Typewriter and paper tape | 14 words | paper tape reader: rewind tape |
See also Input/Output Instructions in Assembly Language
There is a temporary stoppage in work on this project because the author is once again homeless. This is a very worthy project that can benefit tens of millions of poor students at a very low cost (hundreds of dollars a month) and a banner ad for the sponsor could lead to millions of dollars of income. If a business is interested in supporting this project, please see project for details.
return to table of contents
free downloadable college text book
Because I no longer have the computer and software to make PDFs, the book is available as an HTML file, which you can convert into a PDF.
| previous page | next page |
free computer programming text book projectBuilding a free downloadable text book on computer programming for university, college, community college, and high school classes in computer programming. If you like the idea of this project, At the time I write this message I am a few days from becoming homeless. That will greatly interfere with my ability to create this project, which can help nearly 20 million U.S. college students and more than 150 million students world-wide. I am looking for 30 rich people or corporations willing to donate $10 a month to my church so that the church can provide a place indoors for me to continue work. If you want to donate, please see help project. Thanks much. Supporting the entire project: If you have a business or organization that can support the entire cost of this project, please contact Pr Ntr Kmt (my church) free downloadable college text book on computer programming. |
I do the news as an unpaid volunteer for KOCI 101.5 FM, Newport Beach/Costa Mesa (also available on the web)

This web site handcrafted on Macintosh
computers using Tom Benders Tex-Edit Plus
and served using FreeBSD
.
UNIX used as a generic term unless specifically used as a trademark (such as in the phrase UNIX certified). UNIX is a registered trademark in the United States and other countries, licensed exclusively through X/Open Company Ltd.
Names and logos of various OSs are trademarks of their respective owners.
Copyright © 2010 Milo
Created: Novemer 5, 2010
Last Updated: November 24, 2010
return to table of contents
free downloadable college text book
| previous page | next page |