Quote:
quote:Originally posted by manih
Dear programmers.
I'm new in C / C++ programming and I want to write program which output the information of OS (Windows / Unix / Mac - Username - Domain name ...). Dose anyone knows how to do this?
Thanks
Best Regards
ManiH.
|
Code:
#include <iostream>
using namespace std;
int main(){
cout << "WHOAMI: ";
system("echo %USERNAME%");
cout << "OS: ";
system("echo %OS%");
system("pause");
}
I don't need a signature =D