Pascal

Moderators: None (Apply to moderate this forum)
Number of threads: 4106
Number of posts: 14016

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
what happen?? Posted by yuen on 8 Dec 2004 at 3:32 AM
program hw;

uses wincrt;

var
xfile : text;

begin
assign(xfile, 'model.txt');
reset (xfile);
close (xfile)
end.

this is my program....but can't running and post
"runtime error 2 at 0001:0039",why?? and what cam i do??
Report
Re: what happen?? Posted by zibadian on 8 Dec 2004 at 4:20 AM
: program hw;
:
: uses wincrt;
:
: var
: xfile : text;
:
: begin
: assign(xfile, 'model.txt');
: reset (xfile);
: close (xfile)
: end.
:
: this is my program....but can't running and post
: "runtime error 2 at 0001:0039",why?? and what cam i do??
:
Runtime error 2 is a file not found error according to the Pascal help. This means that model.txt is not present in the same directory as your program.
Report
Re: what happen?? Posted by yuen on 9 Dec 2004 at 6:14 AM
This message was edited by yuen at 2004-12-9 9:33:27

Thanks. Then, I want to know how can I use array to search the ansawer??
If my answer is "whack" but the user write "what" , how can the program show the answer is correct "wh"? Can you show me how to write??





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.