I have tryed different ways to solve this problem, but this is what I need help on.
lets say my program has already asked for a hostname and message
each are set with
char hostname[50];
char message[256];
and each called and stored with the input with
cin.getline ( hostname, 50, '\n' );
and the same for message
What I would now like to do is use the system(); command to run a NET SEND
and in the command include
(NET SEND hostname message) where hostname and message already have a value.
how would I do this. I have tryed like system("NET SEND " hostname message); and different things like that but it just wont work. I hope you get what I mean, thanks ALot!
EDIT: I am using Dev-C++