Problem: Siehe Screenshot: http://sau.frubar.net/19049
Die Nachricht wird nicht gesendet; Wenn man das allerdings manuell in der Konsole per „net send …“ schickt, funktioniert es? Was habe ich falsch gemacht?
Code: [CODE]
#include
#include
#include <stdlib.h>
using namespace std;
int main(int argc, char *argv)
{
string IP;
string Nachricht;
cout << "Empaenger-IP:";
cin >> IP;
cout << "Nachricht:";
cin >> Nachricht;
system(("net send " + IP + Nachricht).c_str());
system("PAUSE");
return EXIT_SUCCESS;
}
[/CODE]
mfg Plankton