Go Back   Christian Guitar Forum > Hobbies & Entertainment > Technology
Register FAQ Members List Calendar Arcade Mark Forums Read

Reply
LinkBack Thread Tools Display Modes
Unread 02-03-2007, 07:22 AM   #1
^_^ ^-^ ^_~ -_-' O_O >.<
 
drahgo89's Avatar
 

Joined: Aug 2005
Location: UK, somewhere underground
Posts: 95
Help with Pascal

Hey

I keep getting this error on screen when I try to compile from Turbo Pascal which is "Error 3: Unknown Identifier." I have not read pascal or taught about it. The code was given by the instructor and told me to enter then run the code from Turbo Pascal to show it is working for coursework. Here the screen shot of the code:



Also i need to tell what each of the functions do in my coursework to show my understanding in the code.

drahgo89 is offline   Reply With Quote
Sponsored Links
Unread 02-03-2007, 08:48 AM   #2
Be happy
 
bobthecockroach's Avatar
 

Joined: Apr 2001
Location: Louisiana
Posts: 20,568
The capitalization on the third readIn is different. That could be the problem.
__________________
Lord, have mercy
bobthecockroach is offline   Reply With Quote
Unread 02-03-2007, 09:29 AM   #3
^_^ ^-^ ^_~ -_-' O_O >.<
 
drahgo89's Avatar
 

Joined: Aug 2005
Location: UK, somewhere underground
Posts: 95
Quote:
Originally Posted by bobthecockroach View Post
The capitalization on the third readIn is different. That could be the problem.
it still keep displaying the error. when try to compile it keep underlining the first "writeIn".
drahgo89 is offline   Reply With Quote
Unread 02-03-2007, 09:31 AM   #4
Be happy
 
bobthecockroach's Avatar
 

Joined: Apr 2001
Location: Louisiana
Posts: 20,568
Should there be a semicolon after the else clause of that last if statement?
__________________
Lord, have mercy
bobthecockroach is offline   Reply With Quote
Unread 02-03-2007, 09:42 AM   #5
^_^ ^-^ ^_~ -_-' O_O >.<
 
drahgo89's Avatar
 

Joined: Aug 2005
Location: UK, somewhere underground
Posts: 95
Quote:
Originally Posted by bobthecockroach View Post
Should there be a semicolon after the else clause of that last if statement?
No i tried adding the semicolon and still doesn't run.
drahgo89 is offline   Reply With Quote
Unread 02-03-2007, 09:43 AM   #6
Be happy
 
bobthecockroach's Avatar
 

Joined: Apr 2001
Location: Louisiana
Posts: 20,568
Is there any way to debug and figure out what line the error is on?
__________________
Lord, have mercy
bobthecockroach is offline   Reply With Quote
Unread 02-03-2007, 09:47 AM   #7
^_^ ^-^ ^_~ -_-' O_O >.<
 
drahgo89's Avatar
 

Joined: Aug 2005
Location: UK, somewhere underground
Posts: 95
I do not how to use this program, I select debug and the expression displayed was "writeIn". It said unknown identifier
drahgo89 is offline   Reply With Quote
Unread 02-03-2007, 10:09 AM   #8
...
 

Joined: Jul 2004
Posts: 3,533
Send a message via AIM to tht00 Send a message via Yahoo to tht00
Could it be 'writeln' rather than 'writeIn'?

Edit: (same with 'readln')

I don't know Pascal, but that looks like it could be a common mistake from reading code from a paper/book.
__________________
tht00 is offline   Reply With Quote
Unread 02-03-2007, 10:15 AM   #9
^_^ ^-^ ^_~ -_-' O_O >.<
 
drahgo89's Avatar
 

Joined: Aug 2005
Location: UK, somewhere underground
Posts: 95
Quote:
Originally Posted by tht00 View Post
Could it be 'writeln' rather than 'writeIn'?

Edit: (same with 'readln')

I don't know Pascal, but that looks like it could be a common mistake from reading code from a paper/book.
Ahh yes misread it, thank you
drahgo89 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 08:47 PM.


Search Engine Friendly URLs by vBSEO 3.6.0 PL2