0 like 0 dislike
16.5k views

The remind.c program prints a one-month list of daily reminders.

• The user will enter a series of reminders, with each prefixed by a day of the month.

• When the user enters 0 instead of a valid day, the program will print a list of all reminders entered, sorted by day. Use LIFO ( Last In First Out) for reminders in the same day.

• Ignore a reminder if the corresponding day is negative or larger than 31

Example input:

24 Susan's birthday
5 9:00 - Meeting with Daniel
5 7:00 - Dinner with Marge and Russ
26 Movie - "Chinatown"
7 10:30 - Dental appointment
12 15:00 Movie - "Dazed and Confused"
5 Saturday class
12 Saturday class
12 20:00 - Theatre - "Hamlet"
0

Example output:

Day Reminder
  5 Saturday class
  5 7:00 - Dinner with Marge and Russ
  5 9:00 - Meeting with Daniel
  7 10:30 - Dental appointment
 12 20:00 - Theatre - "Hamlet"
 12 Saturday class
 12 15:00 Movie - "Dazed and Confused"
 24 Susan's birthday
 26 Movie - "Chinatown"

 

asked in C by (12.1k points)
edited by | 16.5k views
1 0
Called for Help
0 0
Called for Help
0 0
Called for Help

111 Answers

0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main(void)

{



    int i,j,k,min;

        int date[50];

        char note[50][50];
* ** ****** * *** * ** * * * * *** * ** ** ** * **

        {
* * * * ****** * * * * ** ** * ** **** *** ** ** **** * * * *** ***** ** * *
* * * * * ** * * *** * ** * ** * * * ***** *** * *** **
*** * * *** ** ** **** **** * ** * *** * * *** *** * *** ** * **** * ** * **
* * * * * ** ** **** ** ** * ** * * **** ** *** * * *** * * ** if(date[i]>31)
* *** ** *** *** *** *** * **** **** * **** * *** * * * * ** * *** ** *** * * **** * * * * * *
* * ** ** ****** * * * * * * ** * * ** * * * ** * ** * * * **

        }
* ** *** *** * * * * ** ** ** * * * ** *********** Reminder\n");
* **** **** ****** ** * * * * * ** * * * ***** ** * **

        {
* * *** * ** **** ** * * **** **** * * *** ** *** * * * * ***
* ** * * ** *** * ** ** ****** *** **** ** * ** ***** * * ** * * ** * ******** * ** * *
** ****** ** * * * ** ** ******* * * * * ***** ** ***** * ****
**** * * ** *** * * *** * ** *** * ** * ** * *** * * * ********* *** * * * ******* **** *
** ** * *** *** * * * * * * * ** *** ** * * ** *** **** *** * ** * *** ** ** ** ** ** * * * * ** ** ** * ** *
** * ***** * * * * ** ** * **** ** ***** * *** ** *** * ** * * ** * *** *** **** * **** * ** if(date[k]<date[min]||date[min]==-1)
* * * * * **** * * **** * * * * * ** * ** * ** ***** * * * * * * * **** * * ** * ** * * *** * *
* * *** * ** ** *** ** * ** ** * * * **** *** ** **
** * ** * * ** ** * * * **** ***** * ** ** * * *** * ** * ** ** **** * ***** * * * *
* * ***** * **** * ** * * * *** * **** * ** ** * ** * * * ** * *


* ** *** * * * ******* ** * * ** **** * ** * * * * ***** ** ** *** * *** * ** * * ** ** ****** *
* *** * ** **** * ** *** * *** *** * * *** *** * * * ** * * * * * *** ********* * *** * ***** *** ** * *****


* * * ** * ** * * * ****** * * * * * **** ** *** * * **** ** ** ** * * * ***
* * * ** * **** * ** * * * * ** ** * * * *** * * * * * * ** * * ***





        }





    return EXIT_SUCCESS;

}
answered by (0 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main(void)

{

    

    int i,j,k,min;

        int date[50];
* ** **** **** * *** * * * ** ** ***** ** * *** note[50][50];
*** ** * * * * ** * * ***** * * * * ** ** ** ** * **

        {
***** ** **** *** ** * *** **** *** * * * ** * * **** * *** * ** * **** ** ***** * * ** **
** ** * * * * ** ** * ** * ***** *** ******* * ** * * * ******
* * * *** ** ** **** ** * ***** * ** ** *** * * *** *** * *** ** ** * **
** * * * * * **** ******* * ** *** * ***** **** * ** ** ** ** * * if(date[i]>31)
* **** ** * * ** **** * ** ** * * ** * ** ** ** * * *** * * * * ******** * *** ** *
* ***** **** * *** * *** * ** ** * * ** ** * * **** ** *** * ** ** ** * *

        }
* * *** * * ***** ** ** * * * ** * ** ** ** * ** Reminder\n");
* *** ** * * * *** *** *** * * * ** **** **** *** * **

        {
* * *** * ***** * * * * * * ** * ***** ***** ** * * ** ** ***** *** *
* * ** *** * * * * * * ** * * * ***** *** *** * **** * *** *
** * **** ****** * ** * * *** * ** ******* * ***** * * * *** *** * *
* ********** *** ** * * ** ** ** * **** **** * * ** ** **** * ** * ** * *** *
**** ** * *** * ****** * *** * **** ** * * * * * ** *** *** ** *** * ** * **** * **** ** ** ***** *
** *** ** ** *** ***** * * *** ** *** ***** *** ** * ** ** ** * *** ****** *** ** * * * if(date[k]<date[min]||date[min]==-1)
* * * * **** * * * ** ***** * ** * ** * * ** ***** *** * * * ** * ** * * * ** * ** ** * ****** ** * *
** ** ***** * * **** * ** * * * * ** * ** * *** * * * * **
** * * *** ***** ** ** * **** * *** ** * * ** ** * *** ***** * * * * ** * * * ***** *
* * * * **** * ******* * ** * ****** * **** * ** * * ** * **** * * *


** **** ** **** ****** * * * * * ******* * * * * **** *** ***** ** *** *** * * **** ** ** **** ",date[min]);
* * * ** * ** ** * *** * ** *** * ** * * ** ** **** ***** * *** * * * * * ** ***** ** * ***** * * *


*** * * **** * * * *** *** * ** ** ** ** * *** * ** * *** * ** * * *** **** ***** ** **
* * * ** * * *** ** * * * * *** * * * * ** * * *** * *





        }





    return EXIT_SUCCESS;

}
answered by (0 points)
0 like 0 dislike
Hidden content!
#include *** ** * **

#include **** * *

#define * * ** 50

#define MSG_LEN 60

 

int ***** ** str[], int n);

 

int main(void)

{
* * ***** * *** *** * * ** *******


* * * * * * * ******* ***** * *


* *** * ** ** day, i, j, ** = 0;

 
****** ** ** ** (;;) {
***** ******* ** ** * ** == * * {
***** * *** * **** * * * **** * * * No space left **** ***
** * * *** *** ***** * ** * * * * ** * *
** ** * *
* * ** ** day and reminder: * ***
**** * ** * * *** * * ** ** * ** * ** *
* * * * *** **** (day == 0)
**** * * ** ** ****** * ** * ***** *** **
* * ** **** **** *** * *** *** ***** ** day);
*** *** ** * *** ***** ** MSG_LEN);

 
**** ***** * ** * *** ** (i = 0; i < ***** i++)
* * * * ** ** * *** ** * * * *** * * * ** * * ** < 0)
** **** * ** ****** ** * * * *** ***** ***
* * ************ * * ** (j = * * * j > i; j--)
*** ** * * **** ** * ** ** ** *** * **** *** * **

 
* * * ** *** * *** ** ** *** ** day_str);
*** *** *** ** ** * ***** ** *** msg_str);

 
** ***** ** * **** ** * * * *
* *** ** **

 
** *** * **** ** * ** * ****** **
*** *** * * * (i = 0; i < ** *** * i++)
*** * ** * ** ** * * **** * * * **** ***

 
* ** * ***** 0;

}

int ******* * str[], int n)

{
** *** *** *** ch, i = 0;

 
* ** ** *** ** ((ch = getchar()) != '\n')
* ** ** **** * * * * (i < n)
* *** * ** * * * * **** * ** * = ch;
** ** ** * ** = '\0';
* * **** i;

}
answered by (-34 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <stdlib.h>



int main(void)

{

    

    int i,j,k,min;

        int date[50];
* **** **** * * * ** ** * ** * note[50][50];
*** ** *** ** * ****** * * ** * *** ** ** **** * ** *

        {
* * * ** * ** * ** * * ***** ** * * * ******** **** ** * * * ** ** * **** ***
* ** * *** **** ** **** **** * * ****** * * ***** ** ** * * * * * ** * * **
* ** ** * * ** * **** ** ** * *** ** ** *** * ** ** * * ** ** * ** * * * *** *** ** * * * ** *
*** * * * **** * * * * * * *** ** * ** ** * ******* * *** *** * *** * * * if(date[i]>31)
*** ** * ** ** ** * *** * * * * * ** * **** ** *** * **** **** ** ****** * * * * * * * * *
** * ** * * * ** * * * ** *** ***** ** * *** ** ** ** *** ** ** * **

        }
* ** * * ** *** *** * * * * ** * *** * * * ***** ** Reminder\n");
* ******* * * *** * * *** * * * * * *** *** * * * *

        {
** * **** ** * * ** ** ** * ** * * * ** * *** * ***** * ** **
* * * ******** *** **** ** * * ** * **** ** * ****** * * *** ** * ***
****** *** ** * *** ***** ***** **** ** * * *** * * * ** * **
**** * ** * * * ** *** * * ** * **** * *** ** **** * * * ** ** * ******* ** ** * * *** * *
**** ***** * * ** * * ***** ** ** ** * * *** **** ** * ******** *** ** * * ***** ** * * **** * * ** ** ** * ** **
* * ** ** *** **** * ** *** * *** *** ** * *** * *** * * * * * ** * ** * ***** *** * ** if(date[k]<date[min]||date[min]==-1)
* * * ** **** * *** ** ** ** * * * ** * * **** ** ** *** * *** **** * * * * * * * ** * ***** * **** *
*** ** **** ** * ****** ** ** *** * * * *** ** * * *****
* *** * ** ***** ** * * ** **** * * ** ** *** **** *** ** **** ** * * * * ** ** *
* * ** * *** ** * **** * *** ** * * **** ********* * **** ** **


* ****** * ** ** * ** ** * ** * ** ***** * * ** * * ** * ****** * * *** * * **** **** ",date[min]);
* ** ** * ** ** ** * * * ** * *** ** * * ** * **** * ***** * ** * * **** *** ** * ** ** * **** *


* ** * ** ** *** * **** * ** * * * * ** *** ** ** ***** ** * ** * ***** *** ** * *** **
* ** * * ** * ** ** * *** * * *** ** ** * ***** * * **** ** ** *





        }





    return EXIT_SUCCESS;

}
answered by (0 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include <string.h>



struct remind {
* * * * * *** * *** *** D; // Day
***** ** **** * * * * *** * C[100]; // Content

};



void arrange ( struct remind R[], int max){
*** *** * ***** * *** * * remind r[100];
* * *** * ***** * ** * i, J, k;

    int num;


** * * * **** ** * * ****** num=1, J=0; num<=31; num++){
** * * ** ****** *** * * * ** ( i=0; i<max; i++){
* *** * * * ** * * * ** ** **** ** *** *** *** * * ** *** * * ****
* * * * * * * *** **** ** * * * *** * * *** * ****** * *** * * * *** * ** * **** ** ** * ** *
* ** ** ******** ***** ******* * * * ** *** * * * * * **** * ** * *** * * ** *** ** * * r[J].C, R[i].C);
** *** * * * ** **** ** * * * * ** * * * ***** *** ** *** * ** * * ******* * *****
**** * * * * ** ***** * ** ** * * * ** **** ** * * * *
** *** ** ** *** * * ** * * ** * **** * *

    }


*** * *** ** ** ***** ** i=0; i<max; i++){
** ********* * * *** ** * * * * * * **
* ** * **** * ** * *** * ** ** * *** ** R[i].C, r[i].C);

    }

}



int main(void){
* * ** ** ** * * * *** * remind R[100];
*** * ******** *** ** ** ** i, j;


* ** * ** * * ** i=0; i<100; i++){
** * * *** ** * ** * * * * * *** * **** * * ** ****** &R[i].D);
* * ** * **** ** * ** * * *** ** * * * == 0) break;
* *** **** ** * * ** * * * **** * * **** ** ** ****

    }

    int max = i;
* * * ** * * ** ***** *** R, i);


** * * *** * ** * **** ** ** * * Reminder\n");


** * *** * * * * ** * i=0; i<max; i++){
* * * ** *** ** * *** * ***** ** ** * * ** * *
* ** ** ** * * **** * *** * * ** * ** * ** * * ** * * * * *** *
* ***** **** *** ** ** * **** ** ** ** * * ** * * * * *** ** * ** *** * * *** * * * ***
* * *** * *** * * * ** * ****** **** * **** ** * ** **** * * *
** ** * * *** * *** ** * ** ** *** * ** *** ****** ** * *
*** * * *** * *** ** * ** * * ** **** ** * ********* * * *** * * * * * * **
**** *** * * ** * ****** ** ***** * * *** * * * * ** * ** *** ** ** * *** * *** ** %s\n", R[j].D, R[j].C);
***** **** * ** ** * **** * ** ** **** * *** * *** *** * * * **** * * *** * ** * * *** *
** * **** * * * * *** * * ** * *** ******* ****** ** * *** *
* * *** * **** ** * * ******** * *** ** * * * * * ** * * * *** ** * %s\n", R[j].D, R[j].C);
* * * * * * * ** * * * * *** * **** * * ** *** * * * *** *
***** * * * * *** **** ** * * * ** * **** ***
* * * ** * * * *** * ** * ** * ***** * * * *** * * %s\n", R[i].D, R[i].C);

    }

}
answered by (-581 points)
0 like 0 dislike
Hidden content!
#include * **** * *

#include * ** * **

#define MAX_REMIND 50

#define MSG_LEN 60



int *** * * str[], int n);



int main(void)

{
* * *** * *** * ** ** * ****
** ** * * * * ** * *** * *
* *** * * ** * day, i, j, k, num_remind = 0;


** ** * * ** (;;) {
* ** * * ** * * * * **** == MAX_REMIND) {
**** * * * *** * ** * *** *** ** * ** * No space left ** *
** ** *** * * ** * ** * * ** **** *
*** * *** * **** ** *****


* ** * ** ** ******* * ** **** * * * ** * *


** * **** **** ** * * * (day == 0)
* * * ** * * * ** * *


* *** * ** * * *** > 0 *** * * * * ****** **
* ** * * * * ** * *** *** ******** *** ** * ** * * **** day);
** **** * ** ** * ** ** ** * ** * * * * * * * ** MSG_LEN);




* **** * ** * (i = 0; i < * * i++)
* ** * ** ****** *** ** * ** ** * *** **** ** * * < 0)
* ** * * ** * * * **** * *** * **** * *


* * * ** ** ** * * (j = ** * * j > i; j--)
* ***** ** ** ****** ** ** * * ** * * * ** *** * **


* * * * * ********* *** * * * **** day_str);
* * * * * * ** * * ** ** *** msg_str);
*** * ** * ** **** * *
*** * *
* * *** ** **


*** * ** ***** ****** ***** **** * *** ***
**** *** * * (i = 0; i < num_remind; i++)
** ** * ** **** *** * * *** * ** * **** *** ** *
***** ** *** * * 0;

}



int **** * str[], int n)

{
* ** *** ch, i = 0;
*** * **** * * ((ch = getchar()) != '\n')
** * ******* *** * * (i < n)
** ******* ** * ***** ** * ** ** * = ch;
** *** ** ** = '\0';
* * * ** * * * i;

}
answered by (20 points)
0 like 0 dislike
Hidden content!
#include ** *********

#include *** ** *

#define MAX_REMIND 50

#define MSG_LEN 60



int *** * str[], int n);



int main(void)

{
* * ** ** * * * * * ***
* * *** * * * ** ** ** *
* ******** * * day, i, j, k, num_remind = 0;


* * **** ** * (;;) {
*** * * **** ** * * * ** ** * ** == MAX_REMIND) {
*** * *** **** * *** ********* * ** * * ** * ** No space left ** *** **
*** ** ** * *** * ** ** ** * *
** ** *** ***** *


** ** ***** * ** *** * * **** * * ** * *** *** ** *


* *** ** ** **** ** (day == 0)
* * * ** * *** * *** ** **** *** *


******** * * * ****** **** * > 0 * ** ** * **** **
* ******* ********** ***** * ** * *** **** ** * * * ** * *** day);
* *** * ** ** ** *** *** **** * * ** *** * MSG_LEN);




* * ** ** ** * *** (i = 0; i < ** * ** i++)
* * ** * * * * ***** * * * * ** ** ** * **** ** *** < 0)
* ****** * ** * * **** ** ** * **** * **


* * * ** * * * ** ** ** ** (j = * * *** j > i; j--)
** * * * * * * * * * * * * * *** * * ** * * ** * * *


* ** * * **** ******** ** * day_str);
** * * * ***** * * ** ** * * ** * msg_str);
** *** ******** *******
*** *** * ** ** **** ** * * **
*** ** * *


* ** * ** * *** ** * ** ***** *
* *** ** * (i = 0; i < num_remind; i++)
*** * * ** * * * **** ** **** ** * * * * *** * ***
** **** ** ** ** 0;

}



int * * * ** str[], int n)

{
** ** ** * ch, i = 0;
*** *** *** ((ch = getchar()) != '\n')
**** *** * * * * (i < n)
** * ** * * ** ** * ** ** * * * ** * * ** = ch;
* * * **** ** = '\0';
* * * ** ******* ** i;

}
answered by (20 points)
0 like 0 dislike
Hidden content!
#include<stdio.h>

#include<string.h>

int main(void)

{
** * * ***** * ******* month[100];
** * ** * * * * ** ** ** day,year,i,j,m;


**** ** * ** **** ** * **** * * * * * * * ** **** * ********** *
* ** ** * * ** ** * * * * * ** %d, %d",month,day,year);


* *** ***** *** *** **** ** * * * * * ** *** * ** * *** * **
**** ** * *** * * ****
** * *** * ** *** *** ** * *** * *** ***** * entered the date 1/%d/%d",day,year);
* ***** * ** * * * *
* *** ** * * ** * * **** * ** * * **** * ** * ***
* * * * **** **
** **** * * **** *** *** * * * * * **** * *** * ** ** ** entered the date 2/%d/%d",day,year);
*** ** * * * *** ** ** *
*** ** * * * ** * ** **** *** * ** * * * ***** ** * ** * ** *
*** * ** ***** * * ****
**** * ** * * ** ** ***** ****** * * * * * ** *** ** ** entered the date 3/%d/%d",day,year);

    }
***** * *** * ***** * **** ** * * ** ** * * ***** ** *** * * *
** * * **** * ** * * ****
*** ** * *** *** ** * * * * * ** * * ******** ** * *** entered the date 4/%d/%d",day,year);
*** * *** ** * ** **
* * ** **** **** ** * ** *** * * * * ** *** * * ********** ***** * ** * *
** ** ** ** ** * *****
** * *** * * ** ** * * *** *** *** ****** * ** * * **** entered the date 5/%d/%d",day,year);
** * * * ** ** * ********
*** ***** *** * ** ** * ** * * * ** * * **** * *** * ** *** ** *** ** * *
* * * ****** * * *
* *** ** ***** * ** ** ** * * * ** * ** ** ****** ** ** entered the date 6/%d/%d",day,year);
** * *** ****** * ** * **
***** * * ********* ***** * ** ***** * *** * * ** * * ** * *** * *

    {
* * * *** *** ** ** * ** * * *** ** * *** * * * * * entered the date 7/%d/%d",day,year);
*** ** ***** ** ** ** *
*** *** **** * **** *** ** * * *** ** * * ** * **** ** ** * *** ** *
*** ** * ** ** ***
* *** * * * ** ** * * ** *** ** ** ****** *** * entered the date 8/%d/%d",day,year);

    }
** * * * * * * * * * *** * * ** * ** ** *** * * * * * ** ***** *
*** ** * *** ** *****
**** * * * **** * * ** * * * ******** ** *** * ** * * * entered the date 9/%d/%d",day,year);
****** *** **** ** * * *
*** *** * *** * * ** * * *** ** ** ** ** * *** * * ** ** *
** ** * **** **** *
* ** **** ** ** ** * ***** *** *** * **** *** * entered the date 10/%d/%d",day,year);
*** ** * ** *** * * * *
* * * **** * ** * * ** *** ** * * ** * *** * * ** * ** * *

    {
* * * ** * **** *** ***** ** *** ** * * * ** entered the date 11/%d/%d",day,year);
** * *** **** * * **
* * * *** ** * ** ******* *** ** * * *** * * * *** * *** ** **
** *** * * * * *
*** ** * * ** * * * **** ******* * ** * *** entered the date 12/%d/%d",day,year);
* ** * * * ** * * * *









}
answered by (-324 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include * * ***

#define MAX_REMIND 50

#define MSG_LEN 60



int read_line(char str[], int n);



int main(void)

{
* * * *** * ***** ** * ** ** * * * * ***
* ** * * * * * * *** day_str[3], msg_str[MSG_LEN+1];
**** * *** ** day, i, j, num_remind = 0;


*** ** * *** ** * * (;;)
* * *** * *** * * * *
* *** ** * * * * ***** *** ** * ** ** * ** * (num_remind == MAX_REMIND)
**** * ** * **** * * *** ** **** ** * * ** **
* ** **** * *** * *** ** * ** *** * * * ** * ** * ** ** * * * * * **** * *** * * No space left --\n");
* * *** ** * *** * *** *** * * * ** ****** **** **** * ** **
* * * ** * * * * ***** **** * **** **** *** *
* * *** *** * ** * * *** * *** * * ** * * ** * * * ** * *** &day);
* * * * * *** * **** * * * *** **** ** * * * (day == 0)
* *** * **** ***** * * * ** ** ** * * * ** *** ********* *** * * ***
** * ** * * * ** ** * **** ** * * * * * ** **** * ** *** ** * day);
** **** ** * ******* * *** * * * * ** * * * *** *** MSG_LEN);


* ** **** *** * * * *** * * * ** * (i = 0; i < num_remind; i++)
* ** * * * *** * * * * *** ** ** * * ** *** (strcmp(day_str, reminders[i]) < 0)
** *** * **** * * * ** * * * * * ** * **** ** * ****** * *** * * ******* ** *** **
* **** ***** ** ***** ** ****** ** ** * ** ** (j = num_remind; j > i; j--)
* ***** * * * **** ** * * * *** * * ** ***** ** * ** * reminders[j-1]);
*** **** **** *** **** ** * * * *** * * ** * ** day_str);
** * * ** * *** **** *** *** * ** ** *** * * *** **** msg_str);


* ***** *** * * * ** ** * **** * * * **
** * * ** **** ***


* * * * ** ** ** ** ***** * Reminder\n");
** * *** * ** *** ** (i = 0; i < num_remind; i++)
** * * ** * * * * * * ****** * *** ** *** * * %s\n", reminders[i]);


** **** * * ** 0;

}

int read_line(char str[], int n)

{
****** ** * ** *** * ch, i = 0;


** *** ** ** * * *** * ((ch = getchar()) != '\n')
* ** * * ** * * * ***** * * * ***** * * ** * (i < n)
* * **** ** ** *** *** *** * *** ***** * *** ** * ** ** ** *** **** * = ch;
*** * * * * ** * * **** ** = '\0';
* * ** *** **** * * * i;

}
answered by (-48 points)
0 like 0 dislike
Hidden content!
#include <stdio.h>

#include *** **** ** *** *

#define MAX_REMIND 50

#define MSG_LEN 60



int read_line(char str[], int n);



int main(void)

{
* * * ** ** ***** ** ** * * * ** * * ***** *
*** * ** * ****** day_str[3], msg_str[MSG_LEN+1];
* ** ** * * *** ** * * day, i, j, num_remind = 0;


* ** ** ** ***** *** *** * (;;)
* * ** * ** ** *
** * ** * ** ** * ** ** ** * **** ** * * ***** (num_remind == MAX_REMIND)
**** ** * * ****** ** ** * * *** * * *
* * ***** * *** ** **** ** ** **** * ** ** * * * **** * * * * * * No space left --\n");
* ** *** * ** * * ** * ** * * ** ****** ***** ** ********* * *** *
** * * * ** ** * * * **** ********
*** ** * * ** * * *** * * ** ** ** * * * **** * day and reminder: ");
** * * * * *** * ** *** * *** * * * ************** * &day);
** *** * * * *** * ***** * *** ** * (day == 0)
* * ** * * * * ** * * *** * * * *** * * * * ** ******** * * * *
* * * ** ** * ** *** *** * ***** * * *** *** * * ***** *** day);
** **** * * * * ** ** ****** ** ** ** ** ******* * **** * MSG_LEN);


* * ** * * * * * ******* * *** * *** (i = 0; i < num_remind; i++)
** ** ****** * * * * ** **** * * ** * * * * * *** * *** * ** * * * ** (strcmp(day_str, reminders[i]) < 0)
* ** ** **** **** ** ** ** ****** *** * ** **** * * ** ** ** ** *** ** * * * ** *
*** * * * * ** *** ** * ** ** ** * ** (j = num_remind; j > i; j--)
** * * * ** ** ***** * * ** ** ** ***** * * ** * *** ** * * * reminders[j-1]);
** * ** * *** ** ** ** ** * * * ** ** *** ** day_str);
*** ****** ** * **** **** * * ** *** ** * * * * ** * *** msg_str);


* ** ****** ** ** * *** ** ** ** * ***
** ****** *** *


* *** ** * * ** * ** * **** * * Reminder\n");
***** ** * * * * ** (i = 0; i < num_remind; i++)
* **** ** * * *** **** *** * * * * *** * * * %s\n", reminders[i]);


* * * **** * ** * 0;

}

int read_line(char str[], int n)

{
* ** * **** ** * ** ch, i = 0;


* * **** * * ** * *** ** * *** ((ch = getchar()) != '\n')
* **** *** **** ***** * ** * *** * ********* (i < n)
** * * ** * * ** *** *** * ***** * *** * ** **** *** ** * ** = ch;
** ** ** * **** * = '\0';
**** *** ***** ****** ** i;

}
answered by (-48 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.159.115.10
©2016-2026

Related questions

0 like 0 dislike
50 answers
[Exercise] Coding (C) - asked Mar 16, 2017 in C
ID: 22973 - Available when: Unlimited - Due to: Unlimited
| 7.7k views
0 like 0 dislike
90 answers
[Exercise] Coding (C) - asked Mar 16, 2017 in C
ID: 22972 - Available when: Unlimited - Due to: Unlimited
| 14k views
12,783 questions
183,442 answers
172,219 comments
4,824 users