Created
June 14, 2017 08:48
-
-
Save yukurt/932183d676b7833eb600fb86771b9756 to your computer and use it in GitHub Desktop.
example.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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(<ime); | |
return ctime(<ime); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment