I'm very new to C++ and its really confusing, i need our help please........
How do i write a code for a function that prompts the user to enter a character stores the char in a char variables and the function returns the character entered by the user
to solve a C++ or any kind of programming problem you have to go step by step
char func(void); //the function used in the program is declared here
void main() //step1: usual syntax void main
//step7: variable to store the value returned from the function
//step6: call the function to get the char
a = func();
//step8: print the char returned from the function
//step2: a function that returns a char
//step3: a variable to store a char
//step4: for a char from the user
//step5: return the char to the calling function
In case of any doubt please feel free to get back to me.