// secondstohhmms.cpp : Defines the entry point for the application.
//
#include <iostream>
using namespace std;
#include "StdAfx.h"
void main()
{
int time,hour,min,sec;
cout<<"Enter time in seconds :";
cin>>time;
hour=time/3600;
time=time%3600;
min=time/60;
time=time%60;
sec=time;
cout<<"\n\nThe time is : "<<hour<<"::"<<min<<"::"<<sec;
}
Errors:
>c:\users\desi9991\documents\visual studio 2010\projects\secondstohhmms\secondstohhmms\secondstohhmms.cpp(4): warning C4627: '#include <iostream>': skipped when looking for precompiled header use
1> Add directive to 'StdAfx.h' or rebuild precompiled header
1>c:\users\desi9991\documents\visual studio 2010\projects\secondstohhmms\secondstohhmms\secondstohhmms.cpp(12): error C2065: 'cout' : undeclared identifier
1>c:\users\desi9991\documents\visual studio 2010\projects\secondstohhmms\secondstohhmms\secondstohhmms.cpp(13): error C2065: 'cin' : undeclared identifier
1>c:\users\desi9991\documents\visual studio 2010\projects\secondstohhmms\secondstohhmms\secondstohhmms.cpp(19): error C2065: 'cout' : undeclared identifier