참고 :C Structure Initialization #include #include #include #include struct x { INT32 a; INT32 b; INT32 c;}; int _tmain(INT32 argc, LPTSTR argv[]) { struct x x1 = {0}; _tprintf(_T("%d %d %d \n"), x1.a, x1.b, x1.c); struct x x2; memset(&x2, 0, sizeof(x2)); _tprintf(_T("%d %d %d \n"), x2.a, x2.b, x2.c); return EXIT_SUCCESS;} /* Output0 0 00 0 0*/
#include #include #include #include int _tmain(INT32 argc, LPTSTR argv[]){ // MAX_PATH : The maximum character length of a path. TCHAR currentDirectory[MAX_PATH]; TCHAR windowsDirectory[MAX_PATH]; TCHAR systemDirectory[MAX_PATH]; // GetCurrentDirectory GetWindowsDirectory GetSystemDirectory // If the function fails, the return value is zero. DWORD result1 = GetCurrentDirectory(MAX_PATH, currentD..
참고 :[Python] platform - Access to underlying platform's identifying data >>> import platform >>> platform.architecture() ('64bit', 'WindowsPE') >>> platform.machine() 'AMD64' >>> platform.platform() 'Windows-10-10.0.17134-SP0' >>> platform.system() 'Windows' >>> platform.version() '10.0.17134' >>> platform.release() '10'