Hey to the people out there. I need help with my school project due on 03/06. I've got my codes all done out, but its copied from a friend of mine and I have done some modifications to it. However, I need to do more modifications to it so that my project will not look similar to my friend's. Help me out guys.
#include<stdio.h>
#include<stdlib.h>
#include<conio.h> // needed for getch() and getche() functions
#include<string.h>
char blog[5000]; // declaration of character array
void intropage(); // declare introPage function of void type
void mainmenu();
void blogentry();
void blogdisplay(int length);
void BlogLength(int length);
void blogcaseconvert(int length);
int main()
{
intropage(); // call function
mainmenu();
return 0; // terminate the program
}
void blogentry() //define function
{
char choice; // variable declaration
do
{
system("cls");
printf("BlogEntry\n");
printf("---------\n");
printf("Please enter Blog below, then press [enter]\n"); //Message to the user
printf("*******************************************\n");
gets(blog);
printf("______________________________________________________\n");
printf("Are you sure? Still want to make anymore changes?(Y/N) ");
printf("\n\n");
choice = getch();
}while (choice != 110 && choice != 78);
}
alright. my aplogy. Now i would like to ask, in my above. The moment i make my selection, my selected screen appears. Where do i have to input e.g, blog entry has been selected." ?
meaning i would like "Blog entry has been selected" before my screen changes.
It would be easier to reference specific lines of code if you put your code in code tags, but I will do the best I can. Since the function call to blogentry() immediately clears the screen, you won't see the "Blog Entry Chosen" message from the mainmenu() function. One way to change this would be to put the message in the blogentry() function itself, after the command to clear the screen. Another option would be to request that the user "Press any key to continue" and include a call to getch() in the mainmenu() function, after the option has been selected.