im trying to create a simple header file for a couple custom functions.
but when i go to compile the program, it gives me the errors:Code:#include <iostream.h> #include <conio.c> #include <time.h> void pause(int t); int random(int u); void pause(int t){ int x; while ( x < 1000000000 ){ x = x + t; } } int random(int u){ int x; srand(time(NULL)); x = ( rand() % u ) + 1; return x; }
redefinition of `void pause(int)'
`void pause(int)' previously defined here
redefinition of `int random(int)'
`int random(int)' previously defined here
and when i doubleclick the errors to see where they are, they both highlight the same line of code. basically, its telling me that those functions are previously defined by themselves! ive tried everything i can think of. whats the deal??