Código PHP:
#include <stdio.h>
#include <time.h>
#include <iostream>
using namespace std;
char c1;
int main();
//funciones
void menu();
void desbloquear();
void inicio();
void reloj();
//
void reloj()
{
for(;;)
{
time_t tiempo = time(0);
struct tm *tlocal = localtime(&tiempo);
char output[128];
strftime(output,128,"%d/%m/%y %H:%M:%S",tlocal);
printf("%s\n",output);
system("CLS");
}
}
//
void desbloquear()
{
printf("Desbloquear Pulse 1\n");
scanf("%d",c1);
if(c1 == 1)
{
menu();
}
}
//
void inicio()
{
reloj();
desbloquear();
}
//
void menu()
{
int opc;
printf("________________________________________\n\n");
printf(" MENU PRINCIPAL");
printf("\n________________________________________\n\n");
printf("1.Agenda 2.Radio 3.Herramientas\n");
printf("4.Ajustes 5.SMS 6.Volver\n");
printf("\n________________________________________\n");
printf("\nOpc: ");
scanf("%d",&opc);
}
//
int main() {
inicio();
getchar();
}