Jose Velasquez

Generation

generate functionSun, 18 Jun 2023

programa que haga un ping 4 veces solamente en linux

#include <iostream> #include <string> using namespace std; int main(){ string ip = "8.8.8.8"; for(int i = 0; i < 4; i++){ system(string("ping -c 1 " + ip).c_str()); } return 0; }

Want to kickstart your project?Use the new AI Studio to create your code