C program for validating date dorm dating

" i want to return it to the start so that can able to try the program again... #include The execution will be like this: Im Data Validator! If that's not what you want, then check its return.In addition to the numeric validity checks, you also have the issue of needing to flush the input buffer in the event something other than an integer is entered by the user. the program prompts for month input until it is in the range [1;12]. If you want to run the program again, after its first execution, move the whole code to a separate function, and execute it in the loop: i tried to do it like this..working ....again there's something wrong with the validation (switch part of it...) like this; enter month:4 enter day:31 enter year:2008 the result is Valid but that should be invalid because its april.. i think my switch case is not workin..you help me figure it out? same as "do you want to try again.." if i put bool its error..compiler is turbo c only...I am taking a certain date as an input from user in following format: mm/dd/yyyy.For more information, see the WM_KILLFOCUS topic in the "Keyboard Input Reference" section, and the "Message Deadlocks" section of the "About Messages and Message Queues" topic in the MSDN library at

Functions can be reused, and they can make the logic simpler.

In addition, a return value is easy to apply in a function, and you can return whenever the function value is determined.

Doing so can cause your application or the operating system to stop responding.

to see whether it was able to make all of the assignments.

If not, you need to consume the user's input before you try again, or you will have an infinite loop trying and failing to read the same input over and over.

Leave a Reply