Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdlib.h>
- int main(void)
- {
- printf ("Press ctrl-c to cancel. Enter the link you want to run wget on.\n");
- std::string link;
- while(1) {
- std::cin >> link;
- std::string dl_command = "wget " + link;
- const char *run = dl_command.c_str();
- system(run);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement