Skip to content

Instantly share code, notes, and snippets.

@hunandy14
Created May 29, 2016 09:59
Show Gist options
  • Save hunandy14/1c1558a3ec0c0b9e6ac49f6ab8e61e0e to your computer and use it in GitHub Desktop.
Save hunandy14/1c1558a3ec0c0b9e6ac49f6ab8e61e0e to your computer and use it in GitHub Desktop.
取得系統變數
/**********************************************************
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