I want to be able to write a program where I can record user input but combine it with command line arguments. For example I do a simple getline(); and the user types test how to combine it so it could be like test /q and it gives a different output depending on what additional input was added. Can this be done with lots of different inputs? Sorry if I haven't explained it well or this is really obvious but I'm very new to C++. All help will be really appreciated as I don't know what to do :(
Thanks guys, but I'm writing a long program and all that code isn't going to cut it. I need to find an efficient way, like how Microsoft did with command prompt and GNU did with Terminal. I'm not intending on writing a program of that level but they must of used a method that worked well.