d07 ajouts tests avec fixed et char dans ex01 et ex02
This commit is contained in:
20
d07/ex01/headers/ClassTest.hpp
Normal file
20
d07/ex01/headers/ClassTest.hpp
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user