Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Turbo Pascal.exe | |
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
User Post
supernova05

Paragoomba
Level: 9

Posts: 22/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-20-05 10:22 PM Link | Quote
I just started a new language called turbo pascal at college its so crap i mean compared to other languages this one is the worst one so far i mean who needs the msdos interface anymore???
lags_80

Koopa
Level: 15

Posts: 101/102
EXP: 13954
For next: 2430

Since: 05-03-05
From: Mexico

Since last post: 9 days
Last activity: 5 hours
Posted on 10-20-05 10:34 PM Link | Quote
Well Turbo Pascal is seems like C, and if you learn Pascal very well, you can use it with Delphi.
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 2178/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 10-21-05 02:46 AM Link | Quote
so... um what's the point of this thread supernova?

Just do it and move on. Watch out in pascal b/c the assignment operator is := rather than just =. I think that's actually a good thing b/c it forces you to not think in terms of equals, it makes you think of it as assignment.
knuck

Hinox
Banned until 19-58-5815: trolling, flaming, spamming, being a general fucktard...
Level: 62

Posts: 1740/1818
EXP: 1894574
For next: 90112

Since: 03-15-04

Since last post: 14 hours
Last activity: 9 hours
Posted on 10-21-05 03:23 AM Link | Quote
Originally posted by MathOnNapkins
so... um what's the point of this thread supernova?

Just do it and move on. Watch out in pascal b/c the assignment operator is := rather than just =. I think that's actually a good thing b/c it forces you to not think in terms of equals, it makes you think of it as assignment.
That's kinda lame actually.
supernova05

Paragoomba
Level: 9

Posts: 23/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-21-05 03:50 PM Link | Quote
so what programming languages do you guys use?
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 2179/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 10-21-05 04:00 PM Link | Quote
Originally posted by knuck
Originally posted by MathOnNapkins
so... um what's the point of this thread supernova?

Just do it and move on. Watch out in pascal b/c the assignment operator is := rather than just =. I think that's actually a good thing b/c it forces you to not think in terms of equals, it makes you think of it as assignment.
That's kinda lame actually.


We could argue how == being the equivalence test in C/C++ is lame too. wouldn't you rather do while(bleh = something)? But we won't argue about it b/c no one's going to change the language any time soon. Forcing yourself to change how you think is part of programming.

And to supernova, I myself use C for pretty much everything. Python occasionally as well as Java but only in rare cases.
supernova05

Paragoomba
Level: 9

Posts: 24/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-21-05 04:04 PM Link | Quote
I just attempted to make a currency converter but i got a prob with the code
iam not sure where it went wrong but the compile says
''writein is an unkown idetifier" iam using tp 5.5, can anyone help??



program menu1 (input, output);

uses CRT;

const

DOLLARS =1.5;

MARKS =3.4;

FRANCS =11;

var

Choice :char;

Currency :real;

Pounds :real;

begin

repeat

clrscr;

writeIn('Currency conversion program');

writeIn;

writeIn('(M)arks');

writeIn('(D)ollars');

writeIn('('(F)rancs');

writeIn;

write('Which currency do you want to convert to pounds? ');

readIn(choice);

writeIn;

case Choice of

'D', 'd':

begin

writeIn('Enter the amount to convert to dollars');

readIn (Pounds);

Currency:=Pounds*DOLLARS;

writeIn('You would get ', Pounds:0:0,

'Dollars for',Pounds:0:0, ' Pounds');

writeIn('press Enter to return to the menu');

readIn;

end;

'M', 'm':

begin

writeIn('Enter the amount to convert to marks');

readIn(pounds);

Currency:=pounds*Marks;

writeIn(You would get ',Currency:0:0,

'Marks for ',Pounds:0:0, ' Pounds');

writeIn('Press Enter to return to the menu');

readIn;

end;

'F', 'f':

begin

writeIn('Enter the amount to convert to Francs');

readIn(Pounds);

Currency:= Pounds*FRANCS;

writeIn('You would get ',Currency:0:0,

'Francs for ',Pounds:0:0,

writeIn('Press Enter to return to the menu');

readIn;

end;

'X', 'x':

writeIn('Exiting program. .');

else

begin

writeIn('Invalid option. Please try again');

writeIn('Press Enter to return to the menu');

readIn;

end;

end;

until (Choice = 'X') or (Choice = 'x');

end.





(edited by supernova05 on 10-21-05 07:20 AM)
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7895/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-21-05 05:56 PM Link | Quote
writeln, not writein. L, not I.
supernova05

Paragoomba
Level: 9

Posts: 25/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-21-05 07:24 PM Link | Quote
no it just looks like that becoz its italsised.
HyperLamer
<||bass> and this was the soloution i thought of that was guarinteed to piss off the greatest amount of people

Sesshomaru
Tamaranian

Level: 118

Posts: 7907/8210
EXP: 18171887
For next: 211027

Since: 03-15-04
From: Canada, w00t!
LOL FAD

Since last post: 2 hours
Last activity: 2 hours
Posted on 10-22-05 12:09 AM Link | Quote
No, you've clearly used 'writein' somewhere in the code, hence the error:
Originally posted by supernova05
''writein is an unkown idetifier"
MathOnNapkins

Math n' Hacks
Level: 67

Posts: 2187/2189
EXP: 2495887
For next: 96985

Since: 03-18-04
From: Base Tourian

Since last post: 1 hour
Last activity: 32 min.
Posted on 10-22-05 01:12 PM Link | Quote
more like... in every single case. B/c if you search this page for writein you'll see about 10 instances of it.
supernova05

Paragoomba
Level: 9

Posts: 26/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-22-05 01:28 PM Link | Quote
Originally posted by Santa Claus
No, you've clearly used 'writein' somewhere in the code, hence the error:
Originally posted by supernova05
''writein is an unkown idetifier"


sorry about that i realised afterwards before that post.
Thanks for the help

edit:
there were so many errors in that one i had to do it from scratch here is the new code:
it works perfectly thanks to your help

program menu1 (input, output);
uses CRT;
const
DOLLARS =1.5;
MARKS =3.4;
FRANCS =11;
var
Choice :char;
Currency :real;
Pounds :real;
begin
repeat
clrscr;
writeln('Currency conversion program');
writeln;
writeln('(M)arks');
writeln('(D)ollars');
writeln('('(F)rancs');
writeln;
write('Which currency do you want to convert to pounds? ');
readIn(choice);
writeln;
case Choice of
'D', 'd':
begin
writeln('Enter the amount to convert to dollars');
readIn (Pounds);
Currency:=Pounds*DOLLARS;
writeln('You would get ', Pounds:0:0,
'Dollars for',Pounds:0:0, ' Pounds');
writeln('press Enter to return to the menu');
readln;
end;
'M', 'm':
begin
writeln('Enter the amount to convert to marks');
readIn(pounds);
Currency:=pounds*Marks;
writeln(You would get ',Currency:0:0,
'Marks for ',Pounds:0:0, ' Pounds');
writeln('Press Enter to return to the menu');
readln;
end;
'F', 'f':
begin
writeln('Enter the amount to convert to Francs');
readln(Pounds);
Currency:= Pounds*FRANCS;
writeln('You would get ',Currency:0:0,
'Francs for ',Pounds:0:0,
writeln('Press Enter to return to the menu');
readln;
end;
'X', 'x':
writeln('Exiting program. .');
else
begin
writeln('Invalid option. Please try again');
writeln('Press Enter to return to the menu');
readln;
end;
end;
until (Choice = 'X') or (Choice = 'x');
end.


(edited by supernova05 on 10-22-05 10:50 AM)
(edited by supernova05 on 10-22-05 10:51 AM)
eNathan

Goomba
Level: 8

Posts: 30/33
EXP: 1773
For next: 414

Since: 08-07-05
From: United States, but does it matter?

Since last post: 1 day
Last activity: 8 days
Posted on 10-25-05 02:09 PM Link | Quote
My programming language of choise is Delphi. Once you go delphi, you don't turn back!!1 I wont go into great detail. Oh and about the := operator, yes it is better than a regular "=" because when you see the colon ":" you think "oh, its an assignment". The syntax of Turbo Pascal / Delphi is very good.

As far as Turbo Pascal being shit...maybe the DOS system you are using it with. However, it would be good to learn it, so if you ever get into Delphi, you already know the language.
Kyoufu Kawa
I'm not bad. I'm just drawn that way.
Level: 70

Posts: 2434/2481
EXP: 3008456
For next: 7355

Since: 03-19-04
From: Catgirl Central

Since last post: 14 hours
Last activity: 13 hours
Posted on 10-25-05 11:18 PM Link | Quote
...People still use Delphi?

...Colleges still use Turbo Pascal!?

OH MY GOD! This is worse than I thought! I thought Pascal was only used as a calling convention these days!



... I use Visual Basic 6, mostly, me...
FloBo

Koopa
Level: 17

Posts: 95/101
EXP: 20723
For next: 4020

Since: 09-11-04

Since last post: 3 days
Last activity: 13 hours
Posted on 10-26-05 12:52 AM Link | Quote
Umm.... well, for people who like WYSIWYG-editors, both Delphi and VB may be a nice choice....

If you just want to write some efficient and "just-do-this-one-task"-tools, you should use C or C++...


And still if you want to write something larger like a development environment or stuff, you should just say goodbye to old crappy Pascal and get used to Java... It's not as slow as it used to be some years ago and it is portable!!! Plus you can do nearly anything with this baby^^



@Kyoufu Kawa: Yes, apparently.... my f***ing prof used to peeve us with using this dead language for every stupid purpose.... totally unnecessary! *brrr* Pascal...
neotransotaku

Baby Mario
戻れたら、
誰も気が付く
Level: 87

Posts: 3982/4016
EXP: 6220548
For next: 172226

Since: 03-15-04
From: Outside of Time/Space

Since last post: 11 hours
Last activity: 1 hour
Posted on 10-26-05 01:54 AM Link | Quote
if you want the sign of the times, my biological thermodynamics textbook (published first in 2001), has a BASIC program to do some biological modeling...

c'mon BASIC
creaothceann

Red Paragoomba
Level: 11

Posts: 48/50
EXP: 5903
For next: 82

Since: 01-27-05

Since last post: 21 hours
Last activity: 21 hours
Posted on 10-26-05 02:03 PM Link | Quote
You can write your code in any language you want; it all gets converted to ASM anyway. The only difference is what tools the language gives you for your tasks. So far the only thing that I would've liked to have in Object Pascal is some control about code inlining.

Btw. don't confuse the language with the compiler / interpreter / product / IDE / whatever.

Originally posted by FloBo
If you just want to write some efficient and "just-do-this-one-task"-tools, you should use C or C++...

The Delphi compiler is quite close to C/C++ compilers, and I'd guess that string-handling programs are faster and more secure. (This is probably not the case with .net programs.)

Originally posted by FloBo
And still if you want to write something larger like a development environment or stuff, you should just say goodbye to old crappy Pascal and get used to Java... It's not as slow as it used to be some years ago and it is portable!!! Plus you can do nearly anything with this baby^^

I've heard that Java is not that good for low-level stuff, and that only the core language features are truly portable. As soon as you use platform-specific features, you have to port your code (or parts of it).
supernova05

Paragoomba
Level: 9

Posts: 61/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 10-31-05 09:04 PM Link | Quote
Originally posted by Kyoufu Kawa
...People still use Delphi?

... I use Visual Basic 6, mostly, me...

I believe you should give up visual basic because:
- Ridiculous Large File Sizes
- Limited Fuction
- Programmer friendly but Not user friendly.
- Most programs look quite similar
- Hard to really do things that you want e.g in games.

I would reconmend DELPHI or C++ as an alternative. Yet again its up to you.
Don Killmi

Level: 8

Posts: 28/29
EXP: 1764
For next: 423

Since: 06-27-05

Since last post: 11 hours
Last activity: 11 hours
Posted on 11-01-05 08:32 PM Link | Quote
Programmer friendly but Not user friendly.
How? You can create "user-unfriendly" crap with any language known to men
Most programs look quite similar
Again, could it be that all crap programs are similar in that they're crap?
Visual Basic wasn't meant to program games back in the day when the difference in speed between it and others was noticeable. But you can do nifty things in VB that would take ages to do in MSVC++, for example.
The truth is, VB trades excellence in speed/ for excellence in design/rapid development/ease of use. Debugging a visual basic program is the easiest thing ever (compared to gdb, for example). It doesn't mean it can't be used to make games and stuff, just that you would be best served with c/c++ (with some asm sprinkled here and there). I would never ever program a small database management program with c/c++ or pure asm, seeing that VB makes things so much easier.

Oh, and Delphi is good. mainly because of self contained executable programs, opposed to VB's program + runtimes (which aren't that big, nowhere near the size of the .NET runtimes, for example).
supernova05

Paragoomba
Level: 9

Posts: 68/70
EXP: 2555
For next: 607

Since: 10-14-05
From: England

Since last post: 13 hours
Last activity: 1 min.
Posted on 11-01-05 11:15 PM Link | Quote
Look Its up to you.
Add to favorites | "RSS" Feed | Next newer thread | Next older thread
Acmlm's Board - I2 Archive - Programming - Turbo Pascal.exe | |


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.016 seconds.