15,979
社区成员
发帖
与我相关
我的任务
分享
//---------------------------------------------------------------------------
#include <windows.h>
#include <iostream>
//---------------------------------------------------------------------------
using namespace std;
int main(int argc, char* argv[])
{
LPSTR str = GetEnvironmentStrings();
while(*str)
{
cout << str << endl;
str += strlen(str)+1;
}
cin.get();
return 0;
}
//---------------------------------------------------------------------------