Skip to content

Instantly share code, notes, and snippets.

@dangkhoasdc
Created June 19, 2013 13:59
Show Gist options
  • Save dangkhoasdc/5814535 to your computer and use it in GitHub Desktop.
Save dangkhoasdc/5814535 to your computer and use it in GitHub Desktop.
Template header file. The order is just my experience. It is useful for small and medium projects.
/* * * * * * * * * * * * * * * * * * * *
* System and Standard Library header file
* Author: DangKhoaSDC.
* * * * * * * * * * * * * * * * * * * * /
#ifndef _STANDARDLIBS
#define _STANDARDLIBS
#ifndef __cplusplus
#error "Must use C++ compiler!!"
#endif
/* Use pre-defined C/C++ compiler macros to determinate OS,
* version or architectures
* More info: http://sourceforge.net/p/predef/wiki/Home/
*/
#ifdef _WIN32
/* * * * * * * * *
* Place for Windows
* * * * * * * * */
#endif
#ifdef __gnu_linux__
/* * * * * * * * *
* Place for Windows
* * * * * * * * */
#endif
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
/*
* User-defined header file
*/
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment