Eu estou tentando criar um novo programa, e a ideia seria que depois da linha printf("\nThis application will remind you on the inserted date that you have an appointment as soon as the computer starts.\n"); eu escrever um texto e depois limpar a tela e aparecer printf("NOW CHOOSE:\n");
printf("\n1-MAKE A TICKET\n");
printf("\n2-MARK IN MEMORY\n");
o que eu estou fazendo errado?
#include <stdio.h>
#include <stdlib.h>
#include <locale.h>
#include <cstdlib>
int main (int argc, char *argv, float)
{
int a,b,c;
char Commitments;
system("title YPA your personal agenda");
system("color 02");
printf("WELCOME TO YPA your personal agenda !!!! \n");
printf("\nThis application has as a function to remind you of important dates working as amultifunctional calendar. \n");
printf("\nSO LET'S GET STARTED :)\n");
system("pause");
system("cls");
printf("WRITE YOUR COMMITMENTS AND THEIR RESPECTIVE SCHEDULES \n");
printf("\nThis application will remind you on the inserted date that you have an appointment as soon as the computer starts.\n");
scanf("%i",&Commitments);
gets("commitments");
system("pause");
system("cls");
printf("NOW CHOOSE:\n");
printf("\n1-MAKE A TICKET\n");
printf("\n2-MARK IN MEMORY\n");
scanf("%d",&a);
if(a==1)
{
printf("A FILE WAS ADDED TO YOUR DESKTOP. THANK YOU FOR USING.");
}
return 0;
}