Message from C, C++ discussions

November 2019

— Each function collecting some data from user and passing it the next

— 

The “function X” in this case would be not_an_option or not_an_number functions . these functions are called as a default option for a switch case if the user enters an input that is not one of the cases

— They basically just display an error message that is times and ends and goes back to the question they made the wrong input to

Message permanent page

— I can also send the entire program if you need to compile it to get a better picture

— So i think i understand better what question i trying to ask , i trying to understand the behavior , like why does it a function that is lexically within the “parent” function if you havent even completed steps in the “child” function that iis currently taking user input

Message permanent page

— Ensure that user either entered valid data or wants to quit. In your case check if all scanf calls are checked for zero return

Message permanent page

— Rewrite this message using function names from your code

— Ok

— Create_Array -> choose_Array_Member_Amount -> Initial_Questions

— That is the follow of how they are called

— Each function calls the next function in the very beginning of the function

— So the user first sees the questions of the last function , Initial question first , since choose array member amount is dependent on what is returned by initial question , and the create array function is dependent on what is returned from choose_Array_Member_Amount

Message permanent page