Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Basic Pascal Tutorial

Newbie Spellweaver
Joined
Mar 8, 2010
Messages
86
Reaction score
17
Copy/Pasted from my original thread.

This will be an extremely short tutorial, not much explained tutorial. Lol.
IDE I used:
Get to know it, mess around with it before you start your first program.
(Note!! I won't explain how to use this IDE, since I don't know it very well.)

Code:
(*
The 'Hello World!' program.
 This is a comment, ignored by the compiler.
 Will NOT affect your program at all!
 Mainly used for notes.
 As you see, it begins with a '( *' and ends with a '* )' (Without spaces!)
*)
{ This is also a comment, again ignored by the compiler. }

program HelloWorld { Where the program begins. }
begin { Where the main program begins. Isn't required, but it's recommended, imo. }
writeln( 'Hello World!' ); { Writes to the console }
readln; { Waits for user input }
end. { The end of the program. }

Please, ignore the highlighting in the code area. Doesn't match Pascal.
 
Last edited:
Joined
Jun 17, 2009
Messages
2,726
Reaction score
340
Wrote this in pascal yesterday

Code:
program addition;
var
num1,num2,sum:integer;
Begin
Writeln('Enter two numbers');
readln(num1,num2);
sum:=num1+num2;
writeln(sum);
readln;
end.

Did simple for a year
 
Last edited:
Infraction Baɴɴed
Loyal Member
Joined
Apr 9, 2008
Messages
1,416
Reaction score
169
hurray for link copy fail.

i interested in this but its hard to fully see what you have done unless you fix the link
 
Elite Diviner
Joined
May 26, 2009
Messages
428
Reaction score
16
If you have been on SourceForge before, you should know what the missing parts are.

 
Back
Top