Okay so I've been getting along with C++ okay so far (came from a java background), but I think I've hit a brick wall and have been doing so for days.
I'm trying to create a really basic menu within the console, the menu needs to say open the file menu and then return back to a menu choice when the user is finished searching the contents of a file menu.
I have what I thought was the basic idea but now I'm not so sure, the code gets stuck in the if loop for File by the looks of it...
I think I just need pointing in the right direction! I have looked at a switch statement but I'm more concerned as to why this won't work with a do while loop.
line 12: if (menchoice == 'f' || 'F')
should be if (menchoice == 'f' || menchoice == 'F')
The same problem in the other 5 if blocks.
Also in the case of while:
line 53: while (menchoice = 'f' || 'e' || 'r');
should be while (menchoice == 'f' || menchoice == 'e' || menchoice == 'r');
Notice that you also used assignment (=) instead of comparison (==) This will not do what you're hoping.