CODE
#include<conio.h>
#include <time.h>
#include<stdio.h>
void main(){
clock_t start, end;
double elapsed;
start = clock();
end = clock();
elapsed = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("%d",start);
getch();}
#include <time.h>
#include<stdio.h>
void main(){
clock_t start, end;
double elapsed;
start = clock();
end = clock();
elapsed = ((double) (end - start)) / CLOCKS_PER_SEC;
printf("%d",start);
getch();}
The program prints 0 onlym how do i print he date?
What i basicly need is a function which reads the current time and stores it, and a function which calculates the number of month/years between 2 dates so that i can calculate loan/banking interests. And what type of variable(structure?) is needed to store the date in it.
I also need a password function, meaning when you write some thing, characters are replaced with starts. Example: password will appear only as ******** on the screen. I have an idea of making a character string and using getch() along with a while loop but iam guessing there is a prebuilt function for this.
Finally i was told that
CODE
printf("\a");
makes a small beaping sound like those old games with DOS, buy iam not getting any sound :/.
Thanks in advance =)


