ive been trying to figure out what the C++ code is to use the net send command with strings. ive come up with something like this so far but the program will always use what i've typed, not whats contained in the strings when I try to put them in the parentheses.
#include <iostream.h>
#include <process.h>
#include <conio.h>
int main()
{
String user, message;
cout << "Enter the user name";
getline(cin, user);
cout << "Enter the message";
getline(cin, message);
system("net send user message");
return(0);
}