music |
OSdata.com |
stream output
summary
This subchapter looks at stream output.
free computer programming text book projecttable of contents
|
music |
OSdata.com |
This subchapter looks at stream output.
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 output.
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 output of a character representation (such as to a line printer) of the major ALGOL data types.
The basic form is as follows:
outreal (output device, real varaible);
The output device is an integer, which represents the output device or channel.
The real variable contains the information to be outputted.
The procedure translates the contents of the real variable into the equivalent character representation and outputs the character representation tot he designated output device. The output is a floating point number of 15 characters, icnluding the plus (positive) or minus (negative) sign.
There are several similar procedures that output the contents of the major ALGOL data types.
outinteger (output device, integer varaible);
outarray (output device, array varaible);
outstring (output device, literals);
The outstring procedure is used to output character literals and blank spaces.
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 i 7) | 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 d 15) | 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
Coding example: I am making heavily documented and explained open source code for a method to play music for free almost any song, no subscription fees, no download costs, no advertisements, all completely legal. This is done by building a front-end to YouTube (which checks the copyright permissions for you).
View music player in action: www.musicinpublic.com/.
Create your own copy from the original source code/ (presented for learning programming).
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 |
Tweets by @osdata |
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, 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. |
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: October 31, 2010
Last Updated: November 24, 2010
return to table of contents
free downloadable college text book
previous page | next page |