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?
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.
Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling
Hey guys,
is there any way so i can make the program not exit immediatly of dos when running program?
Read the FAQ for doing it in C, and do the same thing in Pascal perhaps? (IE: read a keystroke at the end.)
Quzah.
Hope is the first step on the road to disappointment.
Try running it from the command line
-Govtcheez
[email protected]
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.
-Govtcheez
[email protected]
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.
-Govtcheez
[email protected]
Code:repeat writeln('Hello World'); until KeyPressed;
Microsoft is merely an illusion, albeit a very persistant one.
hey dagdarian:
until keypressed doesn't working!
does case matter in Pascal? if so check if you are doing "KeyPressed" and not just "keypressed"
Keyboard Not Found! Press any key to continue. . .