I am trying to create a code where when day or night is entered, the program will tell you if you are working shift one or shift 2. Any help would be appreciated.
Strings are initialized to have no characters (they are "empty" strings).
Try running your program and just pressing Enter. It will think you are on shift 1, because day has a value of "".
1 2
string day = "day";
string night = "night";
Try that and run your program again.
Keep in mind that the user may also input things like "d" and "Day". If this is a simple assignment, don't worry about that. Otherwise you might want to spend some time checking against user randomness.
Also, what if the user enters "neither" or "golden brown" or " HELP!"?