View Full Version : idk what im doing rong and im getting very confused
joehartwig
01-26-2012, 06:49 PM
what am i doing rong here in this pic and thanks :cartman:
slakan
01-26-2012, 06:52 PM
end;
end;
end.
joehartwig
01-26-2012, 06:59 PM
sorry i dont get what u mean can u show me what the full thing should look like?
Caotom
01-26-2012, 08:07 PM
Basically the procedure needs an entirely seperate begin and end.
What you would want is:
program NAME;
procedure TypeInDebug;
begin
Writeln('Hello World');
end; //Notice the semicolon on the end?
begin //This is where you 'call' all your procedures
TypeInDebug;
end. //Notice the full stop after the end? This is only for the main loop, all procedures have a ; after the end
Hope this helped and good luck with learning simba :)
~Caotom
superuser
01-26-2012, 09:37 PM
...
Hope this helped and good luck with learning simba :)
~Caotom
This is not about learning Simba, but learning the basics of Pascal programming language. Luckily, Pascal is ALGOL based language. It was originally intended to teach students programming (so it has easy syntax and learning curve).
I suggest you to read through this (http://www.pascal-programming.info/lesson1.php) for starters.
joehartwig
01-27-2012, 05:29 AM
thanks for the help and yes i am slowly learning how to do the basics im still verry new to this and im the type of person that need a "babysitter" when doing stuff like this to ask a billon time if im doing it right and to check over my work
joehartwig
01-27-2012, 05:31 AM
do i put in the "//notice the semicolon in the end?"
superuser
01-27-2012, 07:48 AM
do i put in the "//notice the semicolon in the end?"
No, that's just a comment in the code. There's two type of them, one-line and block.
A block comment would be like this:
...
{ This is a comment. This block will be ignored by
the compiler/interpreter. }
for i := 0 to 9 do begin // This is a one-line comment, which is also ignored after // -mark.
end;
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.