」 feat: added ex01, might need adjustments :c

This commit is contained in:
y-syo
2025-08-26 18:58:54 +02:00
parent fd0bfc5420
commit 021636df08
4 changed files with 167 additions and 0 deletions

15
ex01/main.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "Span.hpp"
#include <iostream>
int main()
{
Span sp(5);
sp.addNumber(6);
sp.addNumber(3);
sp.addNumber(17);
sp.addNumber(9);
sp.addNumber(11);
std::cout << sp.shortestSpan() << std::endl;
std::cout << sp.longestSpan() << std::endl;
return 0;
}