From 8786ca9366a76c6695a6cb4cb2bcfb32e913d950 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Fri, 4 Sep 2015 08:40:52 -0600 Subject: Initial commit --- logging.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 logging.cpp (limited to 'logging.cpp') diff --git a/logging.cpp b/logging.cpp new file mode 100644 index 0000000..d426978 --- /dev/null +++ b/logging.cpp @@ -0,0 +1,20 @@ +// +// Created by joe on 9/3/15. +// + +#include "logging.h" +#include "stdlib.h" +#include +#include + +using namespace std; +void log(tres* res,int code) +{ + if (code) + { + ofstream fot; + fot.open("~/.pomodori"); + fot<<1<