Need help in templates
Ishan Thilina
ishanthilina at gmail.com
Thu Mar 24 22:18:21 PDT 2011
Hi,
I'm still new to D. I tried to implement a stack using templates. But I get an
"Access Violation" error when I try to run a test on the stack that I made.The
source code is attached with this mail. Can somebody please point out the
error of this code?
begin 644 main.d
M;6]D=6QE(&UA:6X[#0H-"FEM<&]R="!S=&0N<W1D:6\[#0H-"FEN="!M86EN
M*'-T<FEN9UM=(&%R9W8I#0I[#0H@("!W<FET969L;B at B17AE8W5T:6]N(&)E
M9V%N+BXN(2(I.PT*("`-"B`@(`T*"2!3=&%C:R$@*&EN="D@;7E3=&%C:SL-
M"@D@;7E3=&%C:RYP=7-H*#(I.PT*"2!R96%D;&X[#0H)#0H)#0H@("!I;G0@
M8V]U;G0],#L-"@EW:&EL92 at A;7E3=&%C:RYI<T9U;&PH*2E[#0H)"0T*"0EM
M>5-T86-K+G!U<V at H8V]U;G0I.PT*"0EC;W5N="L],C`[#0H)"7T-"@D-"@EW
M:&EL92 at A;7E3=&%C:RYI<T5M<'1Y*"DI>PT*"0EW<FET969L;B at B)60B+&UY
M4W1A8VLN<&]P*"DI.PT*"0E]#0H)#0H)<F5A9&QN.PT*"0T*("`@<F5T=7)N
M(#`[#0H@("`-"B`@('T-"@T*#0H@(&-L87-S(%-T86-K*%0I>PT*"0T*"7!R
M:79A=&4@:6YT(&UA>%-I>F4["2\O<VEZ92!O9B!T:&4@<W1A8VL-"@EP<FEV
M871E(%1;72!S=&%C:T%R<F%Y.PT*"7!R:79A=&4@:6YT('1O<#L)"2\O=&]P
M(&]F('1H92!S=&%C:PT*"0T*"0T*"2\O0V]N<W1R=6-T;W(-"@ET:&ES*&EN
M="!S:7IE*7L-"@D)#0H)"6UA>%-I>F4]<VEZ93L-"@D)<W1A8VM!<G)A>3UN
M97<@:6YT6VUA>%-I>F5=.PT*"0ET;W`]+3$["0D)"2\O:6YD:6-A=&5S('1H
M870@;F\@:71E;7, at 87)E(&EN('1H92!S=&%C:PT*"0D-"@D)?0T*"0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