Q&A

  • 프로시저 가 뭔지 가르쳐주실분~~ 과제라서...자료쫌^^;; 사이트라도..
델파이를 공부하는데

과제가 나왔어영......프로시저에 대해서.....

그런데 찾아봐도 엄네영...흐미..ㅠ_ㅠ 얼마 안남았는데...

님드라 프로시저에 대해서 설명좀 해주셔용...관련사이트라도 좋아요^^;;



1  COMMENTS
  • Profile
    버드 2001.04.10 05:49
    배움이 wrote:

    > 델파이를 공부하는데

    > 과제가 나왔어영......프로시저에 대해서.....

    > 그런데 찾아봐도 엄네영...흐미..ㅠ_ㅠ 얼마 안남았는데...

    > 님드라 프로시저에 대해서 설명좀 해주셔용...관련사이트라도 좋아요^^;;

    >

    Procedures and functions-referred to collectively as routines-are self-contained statement blocks that can be called from different locations in a program. A function is a routine that returns a value when it executes. A procedure is a routine that does not return a value.

    Function calls, because they return a value, can be used as expressions in assignments and operations. For example,



    I := SomeFunction(X);



    calls SomeFunction and assigns the result to I. Function calls cannot appear on the left side of an assignment statement.

    Both function and procedure calls can be used as complete statements. For example,



    DoSomething;



    calls the DoSomething routine; if DoSomething is a function, its return value is discarded.

    Procedures and functions can call themselves recursively.