So I found the program below online. It takes text from an open notepad and shows it to you on the program screen.
So my question is how could I make a c++ program that takes what you put into it and dumps it in another program? For example lets say I have Program 1 and Program 2. Program 2 is asking me to pick a random number, so I type 28 in Program 1 and it shows up in Program 2.
Let me say in advance that I really appreciate your answers guys. (Also I am a pretty unexperinced programmer so an explanation would be wonderful) Again thnx
// DumpNotepadText.cpp
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <iostream>
using namespace std;