command get user name

C++
whoamiJust type following command-line!!
net user
Source

Also in C++: