hora.h
int a = 10;
main.cpp
Código C++:
Ver original
#include <iostream> #include "hora.h" using namespace std; int main(int argc, char *argv[]) { cout << a << endl; return EXIT_SUCCESS; }