C++ Language

created : 2020-06-02T10:14:04+00:00
modified : 2020-12-26T08:33:43+00:00
cpp

Memory

Tips

String

string trim(string& s, const string& drop = TRIM_SPACE) { string r = s.erase(s.find_last_not_of(drop) + 1); return r.erase(0, r.find_first_not_of(drop)); }


### Time
 * 시간 잴때 사용하는 코드 더미
 * minuk.h
   ```c
   #ifndef __MINUK_H__
   #define __MINUK_H__
   #include <time.h>
   unsigned long long calclock(struct timespec *spclock, unsigned long long *total_time, unsigned long long *total_count);
   #ifndef BILLION
   #define BILLION 1000000000
   #endif /* BILLION */
   #endif /* __MINUK_H__ */

Books