d07 ajouts tests avec fixed et char dans ex01 et ex02

This commit is contained in:
Hugo LAMY
2022-03-18 14:26:15 +01:00
parent b30fdff668
commit 726bd388dd
18 changed files with 1098 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
#ifndef CLASSTEST_HPP
# define CLASSTEST_HPP
# include <iostream>
class ClassTest {
public:
ClassTest() : _value("hello") {}
std::string getValue() const {return _value;}
private:
std::string _value;
};
std::ostream & operator<<(std::ostream & o, ClassTest const & rhs) {
o << rhs.getValue();
return o;
}
#endif