Skip to content

Instantly share code, notes, and snippets.

@yukurt
Created June 14, 2017 08:48
Show Gist options
  • Save yukurt/932183d676b7833eb600fb86771b9756 to your computer and use it in GitHub Desktop.
Save yukurt/932183d676b7833eb600fb86771b9756 to your computer and use it in GitHub Desktop.
example.cpp
#include <example.hpp>
#include <ctime>
double My_variable = 3.0;
int fact(int n) {
if (n <= 1) return 1;
else return n*fact(n-1);
}
int my_mod(int x, int y) {
return (x%y);
}
char *get_time()
{
time_t ltime;
time(&ltime);
return ctime(&ltime);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment