Created
May 29, 2016 09:59
-
-
Save hunandy14/1c1558a3ec0c0b9e6ac49f6ab8e61e0e to your computer and use it in GitHub Desktop.
取得系統變數
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/********************************************************** | |
Name : | |
Date : 2016/05/29 | |
By : CharlotteHonG | |
Final: 2016/05/29 | |
**********************************************************/ | |
#include <iostream> | |
#include <stdlib.h> | |
using namespace std; | |
/*=======================================================*/ | |
int main(int argc, char const *argv[]){ | |
char *ptr=NULL; | |
ptr = getenv("PATH"); | |
string PATH = ptr; | |
cout << PATH << endl; | |
return 0; | |
} | |
/*=======================================================*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment