Learning Linux 2011
April 2nd, 2011, 08:02 AM
Greetings,
I am new to Linux and Linux programming.
I used to program Turbo Pascal in DOS a long time ago. I have some old programs that I thought I could copy and paste into Linux to get started.
I downloaded both Free Pascal and GNU Pascal, opened a terminal and tried to compile this Pascal program (one of the first programs I ever created) :
{This program reads in an integer and cubes it}
Program cube;
var n : integer;
Begin
writeln(' Please enter an integer and this program will cube it');
readln (n);
writeln( 'The cube of ' ,n, ' is ' , n * sqr(n), '.');
readln;
End.
I saved the file as Cube.pas in my Home directory.
Can anyone tell me how to get started using Linux? Do I need to do something else?
This program works in DOS using Turbo Pascal 7.
I am new to Linux and Linux programming.
I used to program Turbo Pascal in DOS a long time ago. I have some old programs that I thought I could copy and paste into Linux to get started.
I downloaded both Free Pascal and GNU Pascal, opened a terminal and tried to compile this Pascal program (one of the first programs I ever created) :
{This program reads in an integer and cubes it}
Program cube;
var n : integer;
Begin
writeln(' Please enter an integer and this program will cube it');
readln (n);
writeln( 'The cube of ' ,n, ' is ' , n * sqr(n), '.');
readln;
End.
I saved the file as Cube.pas in my Home directory.
Can anyone tell me how to get started using Linux? Do I need to do something else?
This program works in DOS using Turbo Pascal 7.