r(inti=number-2;i>=0;i])\rptr[i+l]=ptr[i];\rptr[0]=temp;\r)\rtemplate<classT>\rvoidStack<T>::down()\r(\rTtemp=ptr[0];\rfor(inti=O;i<number-l;i++)\r(\rptr[i]=ptr[i+1];\r)\rptr[number-l]=temp;\r)\r#endif\r(2)Test.cpp23st©\r#include<iostream>\r#incIudeuStack.h"\rusingnamespacestd;\rvoidmain()\r(\rinta;\rStack<int>si;\rcoutvv”ãä8å int}e8Щ,,Hendl;\rfbr(inti=0;i<5;i-H-)\r(\rcin[a;\rsl.put(a);\r)\rcoutvv”^ÐÙ©nHsl.peek()Hendl;\rcoutvv”ØÐ"ÐÙ”v<sl.pop()v<"æ%F"<vendl;\rsl.upOc\rcoutv<”¾"ÐÙ?Ðß,ÐÙ©”<vsl.peek()<vendl;EvaluationWarning:ThedocumentwascreatedwithSpire.PDFfor.NET.\rsl.down();\rcoutvv”"Ðß?ÐÙ"ÐÙ©”èsl.peek()vvendl;\rsi.ascendOrder;?>\rcoutv<”>"é ê?ØЩ"Hendl;\r//s1.descendOrder();?>\r//coutH”>"é ê?ØЩ“<vendl;\rwhile(!sl.isEmptyO)\r(\rcoutHsl.pop()Hendl;