how to make a ticking clock

i am just a beginner in c++ amd dont know a lot
here is a simple code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include <iostream>
#include <ctime>
using namespace std;


int main ()

{
    
    int a;



    time_t now = time(0);
    cout << ctime(&now);
    
    
cin.get(); 
    return EXIT_SUCCESS;
}

if i compile this it shows the clock for example if it is 4:15:36 then it will show the time
but stops there...there is no ticking...so how can you bring the "ticking"
Topic archived. No new replies allowed.