Log in

View Full Version : Need To Learn Turbo Pascal 7... Fast!


The Fifth Horseman
31-01-2005, 07:14 AM
So, around May I'll have final exams for my school... trobule is, I declared Computers as one of the subjects I want to have at the exams, and I'll need to learn programming in Turbo Pascal 7 at a moderate-to-good level until that time.

So far, I've been trying my programming skills a while back in a pascal-like programming course/game, with good effect, and written program scripts for a Pascal-based file editor program, also with some success.

My first and primary question is: what should I start with? Ie what types of commands/parameters/whatever should I learn first, and what should be next?

Kon-Tiki
31-01-2005, 04:08 PM
The basics first. Get a hang of the syntax and some of the most common commands. Build up from there. Most of the time, it's just following the tutorial, and in the thread Tutorials, there're a couple on Pascal ;) G'luck with it, as that one's really worth learning for those that want to step into C/C++ with ease :ok:

NeKromancer
23-02-2005, 02:21 PM
Hi there,

I did pascal programming in high school as well. I'd say first start off with learning how to just output stuff to the screen. Then go on to IF statements, Loops such as WHILE, FOR, REPEAT. Then give your self a push to checking out the CASE statements. By then you can try some I/O, reading from the DOS window and outputting it, then file i/o, such as reading/writing stuff to disk.

If you need examples of such, tell me. I can post them here.

Good luck.

The Fifth Horseman
23-02-2005, 02:28 PM
Well, I understand some basics of script control, loops etc, but if you could give me a few examples it would definitely help me a lot.

I find it easier to understand a sample of program code then a lengthy essay on what does command A do, why is the parameter B used etc...

NeKromancer
23-02-2005, 02:40 PM
what kind of examples do you need ?

The Fifth Horseman
23-02-2005, 02:47 PM
Samples of actual program code would be good. It's easier for me to reverse-engineer what each part means then learn the language from the beginning. Just got to always do it the hard way.

NeKromancer
23-02-2005, 03:42 PM
I have ziped 2 pascal programs. They're small and probably quite lame.
I wrote these when I was figuring pascal out for school.

I have a really better one, pretty big where I read/write/edit files use records and whole bunch of handy stuff. But I have it printed out on paper and can't find the actual digital source code ! LOL. It must be somewhere on one of my old computers.

when I find it, i'll post it.

For now these will do. I think I used them on turbo pascal and codewarrior. Well test them see if they compile in turbo pascal.

The Fifth Horseman
24-02-2005, 10:35 AM
Thank you. :bye:

NeKromancer
28-02-2005, 09:44 PM
ah finally found my other pascal program.
This one is bigger.

Unknown Hero
01-03-2005, 08:27 PM
Originally posted by the_fifth_horseman@Jan 31 2005, 09:14 AM
So, around May I'll have final exams for my school... trobule is, I declared Computers as one of the subjects I want to have at the exams, and I'll need to learn programming in Turbo Pascal 7 at a moderate-to-good level until that time.

So far, I've been trying my programming skills a while back in a pascal-like programming course/game, with good effect, and written program scripts for a Pascal-based file editor program, also with some success.

My first and primary question is: what should I start with? Ie what types of commands/parameters/whatever should I learn first, and what should be next?
Take a look at my thread, there you will find some very easy programs in Pascal.


@NeKromancer

You call that easy programs?????

NeKromancer
01-03-2005, 10:50 PM
heh well I did ask what he needed to know, he said he knew the basics on loops and commands. Though he requested some progies so he could reverse engineer them.

The stuff I posted, well in my oppinion, is relatively easy. The most difficult thing in it is the array of records. The rest is all a combo of IF, WHILE, FOR, REPEAT, CASE, statements. Got some stuff in there can read/write files.

The last one I posted is huge! but well documented. He shouldn't have a problem with it. :whistle:

Unknown Hero
01-03-2005, 11:28 PM
I just glanced through your programs. The comments inside them are informative, but still....

The Fifth Horseman
02-03-2005, 12:55 PM
Hey, I've been recently working on making a Bloodrayne MOD, which includes a lot of messing around with the script files. The game's program language resembles Pascal and C to a degree, and I managed to get the hang of it quickly. So with Pascal all I gotta do is learning the commands.


Got some stuff in there can read/write files.

Hmm... if I get how you did it, I might manage to create a better version of some script converter for Bloodrayn I did using an editor tool before (it had its own language, but closely resembling Pascal).

madcrow
02-03-2005, 06:41 PM
pascal is a cool language. much better than c imho. btw, you might want to check out delphi. it's basically a form of "visual pascal" and it has all kinds of nice features like nice opengl bindings available, just in case you ever wanted to code games or demos.

Danny252
02-03-2005, 07:11 PM
if you know any basic languages, pascal is not too far off.
now, I should learn pascal then aswell...

NrmMyth
10-03-2005, 08:55 PM
I did Pascal and also now do it in school.
But in my opinion C is much better and "faster programs" are compiled vith gcc, and it is a base for learning object programing like c++.

Reup
11-03-2005, 08:37 AM
:ot: C is NOT a base for learning OOP. C is as procedural as it gets. It will teach you squat about OOP. ^It might^ make learning C++ a bit easier, but only because of syntax similarities and because the word 'pointer' doesn't freak you out anymore (it does freak me out though, so give me Java anytime :P ).
There are some people who claim you could program quasi-OOP in C if you really wanted... I don't believe them... :ot:

It's great that you really like C, but it's not really useful to make such a comment in a "I need to learn Pascal"-thread, now is it?

NrmMyth
11-03-2005, 02:02 PM
Got you. And now back to the pascal.