1 Attachment(s)
strcmp() inside an if() statement & printf()
Good morning all, this is some code to a larger program. First of all, would multiple if statements with the strcmp functions specifying "commands" to drive the ">" prompt be sufficient, or is there a better way to do this? Right now, with the printf statements inside the if functions, i'm not getting output after compiling and running the program, but if the printf statements are outside of the closing "}" brace after each if statement I get output. But the program is displaying ang executing both, this is not what I want. I only want each one displayed for each "MEETING LIST" command and for example "MEETING ADD 2 101" command. Thanks!
Also, i tried several times with the code comment, and kept getting an error to include the code comment that's why I attached the source code as an attachment to this post.