Results 1 to 6 of 6

Thread: pascal

  1. #1

    Lightbulb pascal

    Whats the differance in these programs?

    Program A: t := a[i]; a[i] := a[j]; a[j] := t; t := 0;
    Program B: a[i] := a[i]-a[j]; a[j] := a[i]+a[j]; a[i] := a[j]-a[i]; t := 0;

  2. #2
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    syntax
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  3. #3
    Wow Thanx So Much

  4. #4
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    Also, in the first example, t, a[i], and a[j] are all equal to 0.
    In the second one, t = 0, but a[i] and a[j] can not be determined.
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

  5. #5
    I think Instead Of Myself Trying To Learn Python, c++, Pascal,and Perl All AT The same
    Time (And Cheating When Im perplexed)Thanks AGAIN I Think Myself Will Stick
    To Just One So I quit Getting Confused

  6. #6
    AntiOnline Senior Member souleman's Avatar
    Join Date
    Oct 2001
    Location
    Flint, MI
    Posts
    2,883
    Python is probably the easist. I would probably start with c++ though. Don't even worry about Pascal. It is a lot like c++ in many ways, but pretty much a dead language.
    \"Ignorance is bliss....
    but only for your enemy\"
    -- souleman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •