boas pessoal, beleza?  já estudei c++ e resolvi dar uma revisada, fazendo um programa orientado a objeto, bem simples a príncipio. para melhor organização, decidi separar interface de implementação.  Enfim... tudo esta aparentemente certo, mas o programa não roda, vou postar o codigo aqui e vocês me dizem o que acham!   //interface ( time.h)
#ifndef _TIME_H
#define    _TIME_H
class time {
public:
    time();
    void setTime(int,int,int);
    void printStandard();
private:
    int hour;
    int minute;
    int second;
};
#endif    /* _TIME_H */
//implementação(time.cpp)
#include "time.h"
#include<iostream>
using std::cout;
using std::cin;
time::time() {
    hour = 0;
    minute =0;
    second =0;
  }
void time::setTime(int h,int m,int s) {
    hour = h;
    minute = m;
    second = s;
}
void time::printStandard(){
    cout<<hour <<minute <<second;
}
//main (principal.cpp)
int main(int argc, char** argv) {
    int h =0, m=0, s=0;
    time t;
    cout<<"Insira a hora\n";
    cin>>h;
    cout<<"\n Insira o Minuto \n";
    cin>>m;
    cout<<"\n Insira os segundos \n";
    cin>>s;
    t.setTime(h,m,s);
    t.printStandard();
    
    return (EXIT_SUCCESS);
}
estou usando NetBeans 6.8 e MingW para compilar, no erro gerado ele diz que o objeto t esta fora de escopo, mas os arquivos estão incluidos certo?
já tentei também instanciar o objeto assim:
time t = new time();
e não foi.
abaixo os erros:
principal.cpp:18: error: expected `;' before "t"
principal.cpp:18: warning: statement is a reference, not call, to function `time'
principal.cpp:26: error: `t' was not declared in this scope