Right-click and choose.This document is reproduced courtesy of Thomas Kurtz The Original-Original VersionYou have to add a dot in front of the slash./a.out /a.out would try to execute a program in the root folder (/). Open up Notepad (Start->All Programs->Accessories->Notepad). If youve made a typo, the easiest thing to do is hit Press Enter to copy the text from the Command Prompt screen. Note that some of these commands are different on non-Solaris machines - see SunOS differences. But they can all be used on turing in essentially the same way, by typing the command and hitting return. Basic UNIX commands Note: not all of these are actually part of UNIX itself, and you may not find them on all UNIX machines.
![]() The variable name used as an argument is distinct from the variable with the same name in the rest of the program. There must be exactly be one argument. Each such function is introduced by the DEF keyword. Defined FunctionsThe user may define up to 26 new functions, giving them names from FNA to FNZ. Thus, SPEED 10 will slow things down to about 10 characters per second. (Like the commands, the system names may be abbreviated to three letters.)In addition, the SPEED command allows you to specify the teletype speed, for a more realistic simulation. If not, the operating system will ask you for a system name. The SYSTEM command may be followed by either BASIC or ALGOL. If not, the operating system will ask you for the name of the program. Example Programs120 DEF FNN(X) = EXP(-(X^2/2))/SQR(2*3.14159265)120 PRINT "GUESS THE NUMBER BETWEEN 1 AND 100."300 PRINT "YOU GUESSED IT, IN" N "TRIES"310 PRINT "ANOTHER GAME (YES = 1, NO = 0)" Although not part of BASIC, the commands of the operating system include the following:HELLO Start a new session, enter your user numberREPLACE Save the current program to storage, overwriting older versionCAT List the names of your saved programs (short for CATALOG)STOP Stop the current run of the program (in case an infinite loop)UNSAVE Unsave the current program programSYSTEM Name the system - limited to either BASIC (default) or ALGOLAll commands may be abbreviated to the first three letters.The NEW, OLD, and RENAME commands may be followed by a program name. Control alt delete for macThe line spacing, and the response “READY”, as provided by the Datanet-30, may not be quite correct.
0 Comments
Leave a Reply. |
AuthorBrian ArchivesCategories |