I have the following program in pascal:
but it cannot be compiled why?Code:Program myprogra(input, output);
Begin
Read(input, c);
Write(ouput, c);
end.
do you know any siet with good pascal tutors or pascal forums?
Printable View
I have the following program in pascal:
but it cannot be compiled why?Code:Program myprogra(input, output);
Begin
Read(input, c);
Write(ouput, c);
end.
do you know any siet with good pascal tutors or pascal forums?
no need for input in read or output in write IIRC.
Code:Program myprogram;
Begin
Read(c);
Write(c);
end.
You have to declare the variable c as well:
Code:Program myprogram;
var
c : string;
Begin
Read(c);
Write(c);
end.
Hey guys,
is there any way so i can make the program not exit immediatly of dos when running program?
help guys
Read the FAQ for doing it in C, and do the same thing in Pascal perhaps? (IE: read a keystroke at the end.)
Quzah.
Try running it from the command line
ok
thanks
do you know any site with any good tutor for pascal?
http://www.google.com/search?hl=en&q=pascal+tutorial
edit: Don't bump posts, either.
zou thinked i haven't search?
Based on your questions, I think it's pretty apparent that if you have searched, you haven't read any of the results.
Code:repeat
writeln('Hello World');
until KeyPressed;
hey dagdarian:
until keypressed doesn't working!
does case matter in Pascal? if so check if you are doing "KeyPressed" and not just "keypressed"