Needing assistance with pointers
Hey, I'm trying to break in to my OWN computer so I can make it more secure and develop skills but I am getting confused with pointers...
Code:
#include <iostream>
#include <windows.h>
#define cmd.exe "C;\windows\system32\cmd.exe"
using namespace std;
int main()
{
char *Input[128];
char Command[128];
Input=&Command;
cin>>Command;
cout<<*Input;
Command="MSG.exe * Hi";
system("cmd.exe"+" "+Command);
}
Is there also any other way I can substitute system() for winexec()?