Показать сообщение отдельно

  #6535  
Старый 26.10.2022, 01:13
Eklessey
Познающий
Регистрация: 13.10.2022
Сообщений: 31
С нами: 1888282

Репутация: 18
По умолчанию

[QUOTE="rinkу"]

C++:





[CODE]
template

struct
ExtendStack
:
public
std
::
stack

{
ExtendStack
(
)
{
}
;
ExtendStack
(
std
::
initializer_list

l
)
:
std
::
stack

(
l
)
{
}
void
Reverse
(
)
{
stack

_t
;
while
(
this
->
size
(
)
!=
0
)
{
_t
.
push
(
this
->
top
(
)
)
;
this
->
pop
(
)
;
}
stack

(
_t
)
;
//
 
Ответить с цитированием