fix some example and readme
This commit is contained in:
13
bin/examples/math/main.cpp
Normal file
13
bin/examples/math/main.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "hack/math/max.hpp"
|
||||
#include "hack/logger/logger.hpp"
|
||||
|
||||
auto main(int argc, char *argv[]) -> int
|
||||
{
|
||||
int a = 4, b = 5;
|
||||
int& c = a;
|
||||
hack::log()(hack::math::max(4, 5));
|
||||
hack::log()(hack::math::max(c, b));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user