http://www.informit.com/guides/content.aspx?g=cplusplus&seqNum=136
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
char * descr = getenv("PATH");
if (descr)
cout<<"value of PATH is: "<< descr<<endl;
else
cout<<"variable not defined"<<endl;
}
'Programming' 카테고리의 다른 글
The Secret of a Successful Programming Language? A Really Great Beard (0) | 2012.06.16 |
---|---|
(Python) 2 raised to the power of 100 (0) | 2012.06.15 |
Avoiding the MSVCR100.dll, MSVCP100D.dll, or MSVCR100D.dll is missing error (0) | 2012.06.15 |
웹에서 마우스 오른쪽 해제 (0) | 2012.06.15 |
yield (C# Reference) (0) | 2012.06.15 |