0 like 0 dislike
17k 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 | 17k 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>

#include <string.h>



int main()

{

    char reminder[60][60];

    char cday[3], cnotes[60], temp[63];

    int day, i=0, j, k;



    while (1)

    {
**** ** ** * * ** * ** ***** * *** ** ** * * &day);
** *** * * * * ** ***** * * * * * * ** * == 0)
** ***** ** * ********* * * ** * * * *** * ** *** * *** *
******** * * * **** ** *** *** * *** * *
***** **** *** ** ** * ** * *** * * * * * * * <= 31 && day >= 1)
*** * * ***** ****** ****** * ** ** ** * **
* * * **** ** ** * * * ********** * ** ****** * ** ** * * **** *** ** *** * "%d", day);
* *** *** * ** * * * * ** * ** * * ** ** ** * ***** * ** *** ** * cday);
* ** * * *** *** ** * ** *** * ****** * * ** **** * * * * *** * * cnotes);
** * ** * ***** * * * ** * ** *** ****** ****

    }



    char k0, k1, j0, j1;

    for(k=0; k<i; k++)

    {
* ** * * ******* ** * * * * *** *** j<i; j++)
** * ** ***** ** * *** * * *** ** *
** ****** ** ** * * * * * * * * *** **** * *** * * **** * *** * ** * * == ' ')
** * **** * ** ** ** * ** **** ***** * ** * *** **** * *** *
**** ** ** ** **** ** ** * *** * **** **** **** * ** **** ** ******* ** * * * * * ** = '0';
** ** *** ****** ******** * ** * ** ** * ** * ** *** ** * * ****** * * * *** ** ** **** * = reminder[k][0];
* * * * ****** * ***** * * ******* * ******* * ** * * ** *** * * *
** * *** ** ****** ** ** *** ** * * * *** * * * ** ** * * ****
** ** * ***** * ****** *** **** * *** * * * ** * * **
* *** * * * ***** * *** * * * *** * ***** * * * * ** * * * ** ** *** * ** * * * = reminder[k][0];
* ** ** ** * ** * * *** * * ** * * ******* * ** ***** * **** * * * * * *** ****** ** = reminder[k][1];
**** *** * * ** * * ** * *** ** *** * * **** **** * ** ** * *
** * ******* * * * ** * ** * * *** * * * ** *** * * * *** * * == ' ')
* * * * ** * *** ** **** * ** * ** * * * ** * ** * * ** ** *
** * **** * * * ** * ** *** * ** * *** * ** ** * * ** ** ** *** ** ** ** ** ** * ** ** ** = '0';
* ** * * * ** ** * ***** * ** * * *** * * * ** * * * * *** ** * * * * *** * *** = reminder[j][0];
**** ** * * **** * *** ** * * * * *** * ** * * * * ** *** **** * *
******** * *** ** **** ** *** * * * * * * ** **** * * * *
*** * * * **** *** * * * ** ** ** * * *** ** * ** **** * * ** *
* *** **** *** ** * *** ** ** * ***** * ** * *** * **** ******* ** * * ** ** ** * * * ** = reminder[j][0];
****** * *** * * * ** *** * * * ** * * *** ** ** * ** * * **** ********** * * = reminder[j][1];
* * ******* ** *** * * * ** * *** **** ** ** *** * ***** * * *****
*** ** * ** * **** ** ******* ** ** * **** ** **** * * * * **** * * <= k0*10 + k1)
* *** * ** * * * ****** ** **** ** * * ****** * *
** ** *** ** * * ** * *** ** * * * * * * * ** ***** *** **** **** * ***** ** * ** * reminder[k]);
* **** * ** ** ********* *** * * * ** * * * ** ** ** * * ** ** ** ** * ** ** * ** * * reminder[j]);
** * ** ** * *** * ** * ** * * ** * * * *********** * * ** * ** ** *** ***** ** * *** ***** ** temp);
*** * ** ** * ** * * ****** ** ** * *** ***** ****** * ** *** * *

        }

    }



    for(k=0; k<i; k++)
* ****** * * ** *** * ** * ** ** ****** * * *** * ***** * ** * reminder[k]);



    return 0;

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

#include <stdlib.h>

#include <string.h>



int main()

{

    char reminder[60][60];

    char cday[3], cnotes[60], temp[63];

    int day, i=0, j, k;



    while (1)

    {
*** * * ** ** ** * **** * * * * * * ****** ** * ** &day);
**** **** ** ** ****** * * ** **** **** **** * ***** *** == 0)
*** ** * *** ** * * ** * * * ** * * * **** * *** * * ** * *
*** * **** *** *** * * * **** * * ** * ** ** **
** * *** ** * * * * ****** ****** * * *** <= 31)
*** ** * *** ** ** * * ** ***** * * * *
* * ** *** *** ** ** * * * *** ** * * * * * *** *** ** ** **** * * * * * * "%d", day);
*** ** **** * * **** ** * *** * * *** * * ******* * * ** * * ** cday);
**** ***** ** * ** *** *** * * * * *** * * **** * * * * * ****** ** * * ** cnotes);
* * ** ****** * * ***** **** **** * *

    }



    char k0, k1, j0, j1;

    for(k=0; k<i; k++)

    {
** ** *** * * ** * * * * ** ** *** ** *** ** * j<i; j++)
** ****** ** * *** * * ** * * * ** ***** *
* * * ***** ** * **** * **** ** ***** ** * * ** ********* ***** * *** * == ' ')
*** * **** *** * * * * * *** * ** ** * ** ** * * * ** ** **
*** ** * ** * ** * ****** * *** * *** * *** * * **** * ** * ** ** ** ****** * ** = '0';
* * * * * * * ** ** ** *** * * ***** ** ** * * * ** * * ** **** ********* = reminder[k][0];
* * * * * * * * ** * * ****** ** ** * *** * * *
** *** * * ** *** **** *** * * * *** * **** *** **** * ** *
* * * * ** * * * ** ** ****** * *** *** ** * ****** *** **
* ** * *** ** * ** * ****** ** * * ** *** ** ** ** ** **** ************ **** = reminder[k][0];
* *** ****** ***** *** *** * *** ** * ** ** ******* * * ** **** * **** * * ** ** *** * = reminder[k][1];
*** * * ** * ** * * ** ** *** ** * * *** ** * * ***
* ** ** ******** * * *** * * ** * * * * * **** * ** * ** * * ** ** == ' ')
* * **** * ** * *** * * * * *** * * * * * * ** ** * ***
* * * * * ** *** * ** ** **** * **** * **** * * **** **** *** * * *** * ** *** = '0';
** * *** ** * *** * ** * * * ** ** ** * * * ** **** * * ** * * * * * * * = reminder[j][0];
* * * * * ** * ** ** *** * * ** ** ***** * **** ** * *** ** *
***** * *** ******** ** ** * * * * *** ** * * * * * * *** * ** * ***** ***
** * * * ** *** * * * ** * ** * ***** ****** ********* **** *
* *** * ** * *** * ** * ** * * * * ** ** **** ***** ***** *** * * * ** * * ** = reminder[j][0];
** ** *** *** * ** * ******* * * *** * ** * * * * ** * ** ******* ** * * ** * * = reminder[j][1];
* *** ** **** ** * * * * * * ** *** * ***** *** ***** ** ** *
*** ** * *** * * *** ** ** * ** *** * ** * **** ** ** * <= k0*10 + k1)
** *** *** *** *** *** * ** * ** * ** ** * * ** * * ** **
** ** * ** ****** * * ** * ** * * ** * * ** *** ** * ** * * *** * * * * * ******* ** ***** * * reminder[k]);
* * *** **** ** ** * * * **** * **** *** ** * * ** *** ** ** ***** * ***** * * reminder[j]);
* * * ***** *** * * ******* * * ** **** *** * * * * *** ** * ** * ** ***** *** **** temp);
* * * ** ** *** * *** ****** *** ** ** ** ** * * * * ** * * * * * **** *

        }

    }



    for(k=0; k<i; k++)
******* ** * *** * *** * * **** ** * * *** *** ** * ** * * * * reminder[k]);



    return 0;

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

#include <string.h>



int main()

{
* * * ** * * ** * ** reminder[50][60]={'\0'};
** * ** *** ** ** ** * * * cday[3], ms[60], x[60];
* ** ** * ** ** * ** * ** day, i=0, a, b;


** * * ****** ******* ** *
* * * * * * * **
* * **** *** **** ** ** * * * ** ** *** * *** * * ** &day);
***** * * * * * * ** * ** * * * ** * * ****
*** ** **** * ** * * ** * ******** * * ********* * == 0) break;
** ******** *** * * *** * * ** *** * ** * * ** ** ******* && day<32)
* **** * *** ** ****** *** ** * ** *** ** *
** ** *** ***** * *** * * * ** ** ** * * * * * * * ** **** * ** * ** * "%2d", day);
* *** * * * ** * ** * * * * *** ** ****** * * * ** * ** ** * ** ** * cday);
* ** ** * ** **** ** * ** * * * *** * **** *** ***** ***** * * * ms);
* *** * * * ** *** * * * * *

    }
* * ** * * ** *** * a<i; a++)
** * **** ** *** **
**** * * * **** * *** *** *** ** * * * ** * * * b<i; b++)
** * ** ** * *** ** *** * ** ***** * * ** * ** * * ** * * >= reminder[b][0]*10+reminder[b][1])
** * * * * * *** * ** *** *** * **** **
** *** * *** ** * * ** ****** ** ** * * * *** **** ** * reminder[a]);
** ** ** ** *** * * * ** * *** * * * * * * * * * ***** * * * * * ** ** reminder[b]);
* * * ** ** ** * * * * *** **** *** *** ** *** * * ** ** *** * * * * ** * x);
* * * * * ** * *** * ** ** *** **** * ** **

    }


* * ** * * * ** **** * ** ** *** Reminder\n");
** * ** ** * ** * * a<i; a++)
** **** * * **** ****** * ***** *** * * * ***** **** * * * * %s\n", reminder[a]);


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

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

#include <string.h>



int main()

{
* * * ** ** *** *** * * * * reminder[50][60]={'\0'};
** * *** *** ** ** ** * cday[3], ms[60], x[60];
*** ** ***** ** * * ******* day, i=0, a, b;


** *** ** **** * **** ** **
******* * ** * * *
* ** * * * * * * * ** **** ***** * ** * * * * ** &day);
* ** * ***** **** * * ** * *
* ***** **** ** * ** * * ** *** ** *** * ** * == 0) break;
** * * *** * * * *** ** * * * * * **** * * * "%2d", day);
**** ** ** * * ** **** * ** * * ** * ** * * * cday);
****** ** * * * ** **** * ** * * * *** ** * * * ** ****** ** * ms);


* * *** * * **
** * ***** ****** * ** ** * a<i; a++)

    {
*** ** * ** **** ** * **** **** * * * *** * * b<i; b++)
** *** ** * ** ** ***** * *** ** *** ** * * * * * ******** *** * >= reminder[b][0]*10+reminder[b][1])
**** ********* * * ** ** ** * *
** ****** ** ** ******** *** ** * * * ** * * **** * ** ** **** ****** ** reminder[a]);
* *** * ** * ** **** ** *** * *** **** **** * ** ** * * *** * ** ** * ** reminder[b]);
* ** **** * ** * * * * * * * * * * * ** **** * * * * * x);
** **** * * ** * * *** ** ******* * * *** ** *
*** * * *** * * ** ******


* * * ** * ** * **** ** * Reminder\n");
** * ** ** *** * a<i; a++)
* ** * *** *** ** * ** ** * ** ** ** ** **** * * %s\n", reminder[a]);


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

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

#include <string.h>

#define MAX_REMIND 50 /* maximum number of reminders */

#define MSG_LEN 60 /* max length of reminder message */

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>0 && day<32){
** * * ***** ** * ** * ****** * * ** * * ******* ** * * **** * * * * * ** * 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 (-324 points)
0 like 0 dislike
Hidden content!
#define MSG_LEN 60 /* max length of reminder message */

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

int main(void)

{
* *** ** * **** ** reminders[MAX_REMIND][MSG_LEN+3];
* ***** ** ** ** * * *** 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>0 && day<32){
* * * *** ** * *** *** * * * * ** * ** * ***** ** * "%2d", 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 (-324 points)
0 like 0 dislike
Hidden content!
#include **** ** ** **

#include ** ** *

#define MAX_REMIND 50 /* maximum number of reminders */

#define MSG_LEN 60 /* max length of reminder message */

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)
* * * ** * * *** *** ** * *** ** ** ** *** * *** *** ** * * ******** *
*** * * * * ** * ** * ** ** * * ** ** * *** * *** **** if(day<0) break;
** * ** ** * * * ** ** * * ** * **** * ** * * ** ** ** if(day>31) break;
* ** *** ** ***** * * ** * ** ** *** * * ** *** ***** * * * 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);
* * ** * * * * * * * * * * * * * * *
* * * ***** *** ** **
* * ** ** * ** * * *** * *** * * ** * * **
** * *** * * * * (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 (-324 points)
0 like 0 dislike
Hidden content!
#include * **** *****

#include * * * * **

#define MAX_REMIND 50 /* maximum number of reminders */

#define MSG_LEN 60 /* max length of reminder message */

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)
** ***** * ***** * * *** * * ** ** * ** * ****** *** **** * *
* ** * ** ******* ** ** ** * * ** **** * *** ******* * ** ** **** *** if(day<0) ;
**** * ** ** * * * *** **** * ** ***** * ** * * * *** * * * * if(day>31);
** ** * ** ** * * * ********** * * * *** * ** * * * 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 (-324 points)
0 like 0 dislike
Hidden content!
*** * * * *
** * *** *****
*** * *** 50 /* ** ** * of */
**** * ** * 60 /* * of * ** * */


* ** * *
* * *

{
**** * **** ** ** **** **
* * ****** * ** ****
* * * * i, j, * ** = 0;
* * {
* ** * == * **** {
* ** No * ** * * *
* *

}
* *** ** * * * * * *
* * * == 0)
* * *
* * * ** ** * * *
****** * * * *
* (i = 0; i * * *** * * *
* ** * * **** ** 0)
**
* (j = * *** j * i; **
** ** ** *
** * **** * * *
* **** * *
* ** ** }
**** * * * * * * *** *** *
*** (i = 0; i * * **
* ***** ** ***** * *** **
* * * 0;

}
* ** * * ** int n)

{
*** i = 0;
* * * = * *** !=
(i ** n)
* * = *
* * = *
i;

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

#include ** ** * ** * *

#define MAX_REMIND 50 * * *** * maximum number of reminders */

#define MSG_LEN 60 * **** * * ** ******* ** max length of reminder message */

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

int main(void)

{
** *** * ** ** ** *** ** ******** ***
******* *** day_str[3], ** * **
****** *** ** day, i, j, num_remind = 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 (-384 points)
Welcome to Peer-Interaction Programming Learning System (PIPLS) LTLab, National DongHwa University
English 中文 Tiếng Việt
IP:162.159.115.9
©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
| 8k views
0 like 0 dislike
90 answers
[Exercise] Coding (C) - asked Mar 16, 2017 in C
ID: 22972 - Available when: Unlimited - Due to: Unlimited
| 14.5k views
12,783 questions
183,442 answers
172,219 comments
4,824 users