#include <iostream>
#include <cstdlib>
#include <ctime>
#include <windows.h>

using namespace std;

...
system("net user John *");
_____
system("net user Michelle *");
____
etc. etc.


....

Question is... how can I make it so that the password is put in automatcially?
I have a project in which the goal is to distribute a file around to all computers that puts in the password for the person automatically (that he/she selected) so that one can log on to any computer using his/her same user name and password.

I would, of course, know all the passwords and just put in the code right underneath the "system("net user John *");"
Does anyone know of a way?