Skip to main content

Posts

Showing posts from February 17, 2012

C++ Programs (object oriented programming)

1. WAP for digital clock. #include<conio.h> #include<iostream.h> #include<dos.h> void main() {     int s=0,m=0,h=0,i;     clrscr();     for(i=1;i<=3600;i++)     {         s++;         if(s==60)         {             m++;             s=0;         }         if(m==60)         {             h++;             m=0;         }         textbackground(WHITE);         textcolor(YELLOW); ...