I have these 3 functions that I use to change the colors of my program:
#include <cstdlib>
void color_correcto()
system ("color 4a");
}
void color_error()
{
system ("color 4e");
}
void color_original()
{
system ("color 4f");
}
They are declared in a Header called "Functions.h". My problem is when I go to another header (Let's call it Test), in which I should include Functions.h if I wanted to use the functions to declare in it, right?:
#include "Funciones.h"
color_correcto();
color_error();
color_original();
The main would look like this:
#include <iostream>
using namespace std;
#include "Funciones.h"
#include "Test.h"
#include <cstdlib>
int main ()
{
color_correcto();
color_error();
color_original();
return 0;
}
Well, when I do this and compile I get an error saying that these functions were not declared in the header Test, even though I included the header "Functions.h" in advance. Does anyone know what the problem could be? ?