I'm working on a simple program in which the user types a sentence, the program iterates through the string that the sentence in stored in and alternates each letter's case, and then puts the formatted text into the clipboard.
I know exactly how to allow input and change case/check if characters are alphabetical and therefore able to change case. What I would like to know is how to get the clipboard part working.
I have been able to get the basic code for the clipboard to work, however, if I input a string like "Hello world", it cuts off anything past a space. The only time it has succeeded is when I embedded "Hello World" in the code as a const char variable WITHOUT allowing input.
I understand how to use the clipboard code, however in all the permutations and different ways of passing a user-inputted string, it still cuts off the characters after the space. I am using cin for the input. In short, please provide me an example that gets inputted text (please, no getch() or _getch()), and saves it into the clipboard and if possible, describe why I am having the problem.
I honestly am trying to learn about why it works that way, but programming is a notoriously difficult field to find good walkthroughs for.