Date: Wed, 11 Dec 1996 22:34:35 GMT Server: NCSA/1.5 Content-type: text/html Last-modified: Mon, 16 Sep 1996 18:50:44 GMT Content-length: 18977 CS 302 Section 70 Lecture Notes - Week 2

Lecture Notes - Week 2


Topic:
Program structure. Constants and variables. Arithmetic expressions. The assignment statement. Built-in functions. Binary Representation. Unformatted input and output. Errors.
Text:
Chp. 2.1 - 2.8
Notes:

Fortran Line Structure

Comment Field

Continuation Marker

FORTRAN Statements


FORTRAN Program Structure

Program Header

STOP

END


FORTRAN Variables

Variable Names

Variable Types

Variable Declarations

Constants


Assignment Statement


Arithmetic Expressions

Aritmetic Operators

Operator Precedence

Arithmetic Functions

Type Matching

REAL Numbers

Rounding Errors

Storing in Binary

CHARACTER Strings


Input and Output

Unformatted Output

Unformatted Input

Reading CHARACTER Strings

Types of Errors


Copyright © 1996 Modified from Gareth S. Bestor (bestor@cs.wisc.edu). Last modified September 16, 1996.