Forum: Pascal and Delphi Mar 11th, 2008 |
| Replies: 5 Views: 3,884 try this following code :
{********************************************
* This Procedure to Sort element vektor *
* Procedure ATUR to organize an element position *
... |
Forum: Pascal and Delphi Mar 11th, 2008 |
| Replies: 5 Views: 3,884 yeah. i will give u QuickSort procedure |
Forum: Pascal and Delphi Mar 7th, 2008 |
| Replies: 4 Views: 858 i was modified your code and add a some code :
i use your initial code...
function POP (var T : Tumpukan) : integer;
{*this function to check stack is empty or not*}
function Empty(var T :... |
Forum: Pascal and Delphi Mar 7th, 2008 |
| Replies: 5 Views: 1,899 try this following code :
program Reverse_String;
uses crt;
const Elemen = 255; {* Max character *}
type S255 = string[Elemen];
Stack = record
Input :... |
Forum: Pascal and Delphi Mar 6th, 2008 |
| Replies: 4 Views: 2,255 see this code :
function FIBO(N : integer) : integer;
begin
if (N = 1) or (N = 2) then
FIBO := 1
else
FIBO(N) := FIBO(N - 1) + FIBO(N - 2)
end;
hope this helps... |
Forum: Pascal and Delphi Mar 5th, 2008 |
| Replies: 3 Views: 1,370 i think you forget to set full = false, just it.
add this code after else :
begin
Full := false;
T.Top := inc(T.Top);
T.Contain[T.Top] := X
end
ok hope this... |
Forum: Pascal and Delphi Mar 5th, 2008 |
| Replies: 6 Views: 1,300 sorry for the double post. |
Forum: Pascal and Delphi Mar 5th, 2008 |
| Replies: 6 Views: 1,300 see this example :
i write this code in pascal
5318
hope this helps.. |
Forum: Pascal and Delphi Mar 5th, 2008 |
| Replies: 6 Views: 1,300 see this example :
i write this code in pascal
5318
hope this helps.. |