Bei Linux (Ubuntu) funktioniert dieser Code ohne Probleme, aber bei Win will es einfach nicht funktionieren.
Ich will schauen ob er im Netzwerk ist.
Ich benutze mingw32 Compiler könnte das das Problem sein?(in codeblocks)
if(system("ping -n 1 192.168.1.1")!=0){cout<<"kein Empfang";}//in Linux -c statt -n
else{cout<<"Empfang";}
Danke für die Hilfe
Ich will schauen ob er im Netzwerk ist.
Ich benutze mingw32 Compiler könnte das das Problem sein?(in codeblocks)
if(system("ping -n 1 192.168.1.1")!=0){cout<<"kein Empfang";}//in Linux -c statt -n
else{cout<<"Empfang";}
Danke für die Hilfe