Please I need help of modifying this code to work on gcc compiler.My compiler do
ID: 3613419 • Letter: P
Question
Please I need help of modifying this code to work on gcc compiler.My compiler do not recognize <conio.h> and getch() function.Thanks#include<stdio.h>
#include <conio.h>
int main(void)
{
char meetday[3],ch;
int count = 3;
intindex;
printf(" Below are thea.m or p.m info for the meeting time of the associated group oractivity ");
printf("----------------------------------------------------------------------------- ");
printf(" Enter 'p' for first group meeting time p.m ");
printf(" Enter 'p' for second group meeting time p.m ");
printf(" Enter 'p' for third group meeting time p.m ");
for(index=0;index<count;index++)
{
scanf("%c", &meetday[index]);
while ((ch = getchar()) != ' ' );
}
getch();
return 0;
}
Explanation / Answer
please rate - thanks try this #include int main(void) { char meetday[3],enter; int count = 3; int index; printf(" Below are thea.m or p.m info for the meeting time of the associated group oractivity "); printf("----------------------------------------------------------------------------- "); printf(" Enter 'p' for first group meeting time p.m "); printf(" Enter 'p' for second group meeting time p.m "); printf(" Enter 'p' for third group meeting time p.m "); for(index=0;indexRelated Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.