Hi everybody,
I am new to C++ and I would like to use this program to give the home
directory to each user.
My program is as below:
#include "iostream.h"
int main()
{
cout << "Home Directory for this user" << endl;
system("net use H: \\TEST\Home\%username%");
return 0;
}
I've got the message as below:
--------------------Configuration: HomeDirectory - Win32 Debug-----
Compiling...
HomeDirectory.cpp
D:\HomeDirectory\HomeDirectory.cpp(10) : error C2065: 'system' :
undeclared identifier
D:\HomeDirectory\HomeDirectory.cpp(10) : warning C4129: 'H' :
unrecognized character escape sequence
D:\HomeDirectory\HomeDirectory.cpp(10) : warning C4129: '%' :
unrecognized character escape sequence
Error executing cl.exe.
HomeDirectory.obj - 1 error(s), 2 warning(s)
Thank you so much for your assistance.