Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <cstdlib>
- void ping(){
- std::string server = "google.com";
- std::string cmd = "ping "+server+" -t";
- system(cmd.c_str());
- }
- int main(){
- ping();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement