Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: Actor
  • Content: Threads
  • Order by date
  1. Actor

    Elements of Programming Style

    This is an exercise from THE ELEMENTS OF PROGRAMMING STYLE by Kernighan and Plauger. The program supposedly counts characters, words and sentences. A slach signals end of data. The exercise is to replace the arithmetic ifs with logical iffs. I don't think the program works, arithmetic ifs or...
  2. Actor

    Problem installing Free Pascal

    I've been trying to install Free Pascal on my PC. The download seems to have gone OK. There is now a directory called FCP with a subdirectory named 2.2.0. What next? Isn't the program itself supposed to be FCP.EXE? This file does not exist. Do I need to do some more unzipping? There are...
  3. Actor

    tpc crashes when invoked from Command Prompt in Win XP

    In the last 24 hours I have had TPC crash whenever I use it on my XP machine. I.e., I type TPC myprog and the Command Prompt window immediately disappears. The problem seems to be connected with certain sources files, i.e., files with .pas as the extension. However, compiling unaffected files...
  4. Actor

    Typed Constant Record

    I want to create an array of records and have it be a typed constant, I've tried the following: Type ElementType = record Noun : String ; AtomNum : Byte ; AtomMass : Real end ; Const ATOM_TABLE : Array [0 .. 2] of ElementType = (...
  5. Actor

    Finding a run-time error

    I'm using the command line compiler of Turbo Pascal 7. I do not have the IDE. I recall there is a method of running the compiler and having it tell you which line of code has a run-tme error. It is some kind of switch that tells the compiler the address of the error. It's something like...
  6. Actor

    Deleting records in typed files in Turbo Pascal

    Is there any way to delete a record in a typed file? For example: type whatype = file of string ; var f : whatype ; i : longint ; begin i := 99 ; assign (f, 'whatever') ; reset (f) ; delete (f,i) ; close (f) end. In the above code delete (var f:whatype ; i:longint)...
  7. Actor

    Copy protection for .exe files

    Suppose I write a program and sell copies of the .exe file. How can I keep one customer from making a copy of the .exe file and giving it away? (or selling it? I don't want to use a dongle. I have bought software that required a code to install but I have no idea how to implement such a...
  8. Actor

    FAT 16 or FAT 32

    I have an old PC with Windows 98. The HD is 8.4 Gig with four partitions of 2.1 Gig each. Only the C: partition has anything on it. There are no files on the machine that I want to keep. I want to make this a DOS 6.22 machine. I had planed to repartition the drive with fdisk, but it occurs...
  9. Actor

    What does it do?

    thread935-969152 First, it would not compile because the variable pocMedz is never declared. Second, assuming that was fixed, the program simply clears the screen, then waits for the user to hit a key. The Boolean expression in the IF statement will never evaluate to TRUE ergo the write...
  10. Actor

    Redirection

    BACKGROUND DOS provides for redirection of input/output. A program designed to accept input from the keyboard and output to the screen can be made to accept input from a file and/or output to another file. For example, the following program is written for std in to std out. Program fCopy...
  11. Actor

    Pascal for iMac

    I'd like to program my iMac using Pascal. There seems to be four possibilities. 1. Turbo Pascal for Mac. I think Borland offered such a thing at one time. I keep browsing eBay for a copy. Can I download it? 2. Think Pascal. I have a link for a download but the site seems to no longer...

Part and Inventory Search

Back
Top