1
0

」 feat: finished ex02

This commit is contained in:
2025-04-19 20:55:50 +02:00
parent 7847fdc9e3
commit 8d855020e9
4 changed files with 150 additions and 0 deletions

31
ex02/main.cpp Normal file
View File

@ -0,0 +1,31 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/16 10:53:23 by adjoly #+# #+# */
/* Updated: 2025/04/19 20:55:37 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "MutantStack.hpp"
int main(void) {
MutantStack<int> stack;
stack.push(5);
stack.push(17);
stack.pop();
std::cout << "size = " << stack.size() << std::endl;
stack.push(3);
stack.push(5);
stack.push(737);
//[...]
for (MutantStack<int>::iterator it = stack.begin(); it != stack.end(); it++) {
std::cout << *it << std::endl;
}
return 0;
}