Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Software Development Software Development
Search Search
Search for:
Tech Support Guy > > >

Solved: Help with Pascal needed!


(!)

TheBarefoot's Avatar
TheBarefoot TheBarefoot is offline TheBarefoot has a Profile Picture
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
Location: Slovakia
Experience: Beginner
09-Jul-2012, 10:40 AM #1
Unhappy Solved: Help with Pascal needed!
Helo I need a little help , I've downloaded FPC and I tried to write a program in it (the program is from my teacher so i think it must be right) and when I tried to compile it , the 2 errors had occurred:
first .pas (4,6) Fatal : Syntax error ":" expected but ";" found
I don't uderstand this error cause I've been taught that after a line , there comes " ;"
and then the other error:
first .pas (0) Fatal : Compilation aborted
this might be caused by the firts error or?
Here's the program that I've written:
program first;
uses crt;
var A, B, volume: integer;
begin;
clrscr;
write ('type side A');
readln (A);
write ('type side B');
readln (B);
volume:= A*B;
write ('volume is:', volume);
readln;
end.
NuttyBar's Avatar
NuttyBar NuttyBar is offline
Computer Specs
Account Disabled with 67 posts.
 
Join Date: Jun 2012
Experience: Beginner
09-Jul-2012, 04:24 PM #2
Take away the semicolon after "begin".
TheBarefoot's Avatar
TheBarefoot TheBarefoot is offline TheBarefoot has a Profile Picture
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
Location: Slovakia
Experience: Beginner
10-Jul-2012, 04:36 AM #3
Talking That simple?
Thank you, I never thought that semicolon may cause this problem. I'm such a noob
NuttyBar's Avatar
NuttyBar NuttyBar is offline
Computer Specs
Account Disabled with 67 posts.
 
Join Date: Jun 2012
Experience: Beginner
10-Jul-2012, 04:20 PM #4
Hah.

I don't even/have never used Pascal, but I just figured that was wrong by researching Pascal syntax.
Squashman's Avatar
Trusted Advisor with 19,658 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
11-Jul-2012, 07:29 AM #5
Quote:
Originally Posted by NuttyBar View Post
Hah.

I don't even/have never used Pascal, but I just figured that was wrong by researching Pascal syntax.
I hadn't programmed pascal since the early 90's in college and I couldn't remember if it needed it or not.
So all I did was Google search for "Pascal Hello World" to see a program example. Most problems can be solved if people would just use some common sense and search the Internet.
We didn't quite have the Internet at my college from 1989 to 1993 but we had Books, Teachers and Other Students to reference all the time.

For the original poster, don't expect us to do your home work for you the rest of the year.
ckphilli's Avatar
ckphilli   (Chris) ckphilli is offline
Member with 4,294 posts.
 
Join Date: Apr 2006
Location: Down South
Experience: Intermediate
11-Jul-2012, 07:52 AM #6
Quote:
Originally Posted by Squashman View Post
Most problems can be solved if people would just use some common sense and search the Internet.
TheBarefoot's Avatar
TheBarefoot TheBarefoot is offline TheBarefoot has a Profile Picture
Computer Specs
Member with 3 posts.
THREAD STARTER
 
Join Date: Jul 2012
Location: Slovakia
Experience: Beginner
11-Jul-2012, 05:07 PM #7
No be sure that I'm not expecting you to do this. and it's not my homework. It's just a program that my teacher gave me to exercise. I just never thought that a semicolon may have cause such a problem. Now we're having a holiday so I don't have a teacher to ask and we don't have books to learn from so sorry for wasting your precious time. Have a nice day.
NuttyBar's Avatar
NuttyBar NuttyBar is offline
Computer Specs
Account Disabled with 67 posts.
 
Join Date: Jun 2012
Experience: Beginner
12-Jul-2012, 04:02 PM #8
In programming, a 60,000 line mega-program/game engine and game source code can fail to run because of a semicolon.

One error in programming is enough to wreck the whole program.

But yeah, of course your error is forgiven. Everyone makes mistakes.

But it is something to note that a lot of things(a LOT)can be found through other information on the internet.

Most of the time a lot of questions programmers have can probably be discovered easier and faster by searching online than by posting questions.

But again, it's not your fault.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
fpc

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑