Код: Выделить всё
#include
#include
#include
using namespace std;
int main(int argc, char* argv[]) {
char *var = "TEST=/usr/home";
putenv(var);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78388235/unable-to-access-environ-variable-once-the-local-variable-is-put-into-the-enviro[/url]
Мобильная версия