Advertisement
anta40

testping.cpp

Feb 16th, 2023
1,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.23 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <cstdlib>
  4.  
  5. void ping(){
  6.     std::string server = "google.com";
  7.     std::string cmd = "ping "+server+" -t";
  8.     system(cmd.c_str());
  9. }
  10.  
  11. int main(){
  12.     ping();
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement