-
March 25th, 2002, 07:59 PM
#1
Member
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;
-
March 25th, 2002, 08:11 PM
#2
\"Ignorance is bliss....
but only for your enemy\"
-- souleman
-
March 25th, 2002, 08:13 PM
#3
Member
-
March 25th, 2002, 08:14 PM
#4
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
-
March 25th, 2002, 08:27 PM
#5
Member
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
-
March 25th, 2002, 08:41 PM
#6
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
-
Forum Rules
|
|