Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <windows.h>
- using namespace std ;
- int main()
- {
- HANDLE clip;
- if (OpenClipboard(NULL)) {
- clip = GetClipboardData(CF_TEXT);
- CloseClipboard();
- }
- cout << (char*)clip << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement