ok, when i try and compile my unfinished program at the bottom:
it gives me these two errors
c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:6: warning: missing string capacity - assuming 255
c:\documents and settings\owner\desktop\programming stuff\programming practice (pascal)\unitconverter.pas:7: parse error before `In'
and i'm new to programming so i dont know what they mean. please help
program unitconverter;
uses crt;
label 1;
var
unit : string;
in,inft : real;
begin
textbackground(black);
1:clrscr;
textcolor(white);
gotoxy(2,2);
writeln('1. Inches (in)');
gotoxy(2,3);
writeln('2. Feet (ft)');
gotoxy(2,4);
writeln('3. Yards (yd)');
gotoxy(2,5);
writeln('4. Miles (mi)');
gotoxy(2,6);
writeln('5. Milimeters (mm)');
gotoxy(2,7);
writeln('6. Cenimeters (cm)');
gotoxy(2,8);
writeln('7. Meters (m)');
gotoxy(2,9);
writeln('8. Kilometers (km)');
gotoxy(2,11);
write('Choose a unit to convert from by entering its abbreviation:');
readln(unit);
clrscr;
if unit='in' then
begin
gotoxy(2,2);
write('Enter number of ',unit,' to convert:');
readln(in);
clrscr;
gotoxy(2,2);
writeln(,in ,, unit,'=');
inft:= in / 12;
gotoxy(2,4);
writeln(,inft,' Foot\Feet');
readln;
end.
end.