Pasting into console

Hello I am wondering if it is possible to be able to paste from the clipboard directly into the console while running a program. I am creating a program to solve a challenge in which you have 30 seconds to unscramble 10 random words selected from a wordlist.

Due to the time limit, manually typing them in is too slow but it does not seem to let me right-click->paste like it normally would when running a cmd window.

I'm using Dev-C if that helps.

Thank you for any help you can provide.
Normally, you should be able to paste things straight into the console. When this is however not possible, and you really don't want to type it in manually. I advice you write the data to a file and read it using filestreams (which are defined in <fstream>).
not possible to use files in this instance. Its a program made for a challenge and you have 30 seconds to paste it into your program, wait for it to calculate 10 results and then paste the results back into the website and click the button to complete the challenge.

I would physically not have enough time if i had to paste text into a file, save it, close it, re-run the program and go from there.

This challenge is designed to give you virtually no extra time.

Dev-C doesnt seem to let you paste it into the console if you are creating a console app instead of an .exe and run straight from DEV (F9). Any ideas on how to maybe read from clipboard ?
You should check out this website when you use the Windows platform: http://msdn.microsoft.com/en-us/default.aspx
Topic archived. No new replies allowed.