Моя первая курсовая с программирования, делал год назад
#include<iostream>
#include<conio.h>
#include<windows.h>
#include<iomanip>
#include<time.h>
#include<iomanip>
#include<stdlib.h>
using namespace std;
const int n=100;
bool z;
char a[n], c, a2[n];
int j, timer=1000;
time_t t;
char file[10];
FILE *f, *fc, *fb;
struct tim {
struct tm st;
int klk,pom;
float sec, prc;
}dani;
struct mm{
char m[n]