C
cheesywillie
How do i get a string variable to be included into a system command?
For example:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
string reply;
cout << "What do you want to say? ";
cin >> reply;
system("net send 192.168.***.*** "); //how do i get the string
variable, "reply" after the IP?
system("PAUSE");
return 0;
}
any help would be appreciated thx
For example:
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
string reply;
cout << "What do you want to say? ";
cin >> reply;
system("net send 192.168.***.*** "); //how do i get the string
variable, "reply" after the IP?
system("PAUSE");
return 0;
}
any help would be appreciated thx