Here's my code, it's kindof self-explanatory. I am getting errors and I believe its how I am trying to make the command a string, I am not that good when it comes to strings.
Code:#include <iostream> #include <windows.h> #include <stdio.h> #include <string.h> #define msg "C:\\windows\\system32\\msg.exe"; using namespace std; int main() { char Message[90]; int Who; char Where[90]; string command[0]; cout<<"Please enter your message:"; cin>>Message; cout<<"Please enter who:"; cin>>Who; cout<<"Please enter where:"; cin>>Where; if (Who==0) { command=(msg Where Message); system(command); return 1; } else { command=(msg Who Message); system(command); return 1; } cin.get(); return 1; }