#include <iostream>
#include <Windows.h>
#include <TlHelp32.h>
#include <string>
#include <format>
using namespace std;
#pragma warning(disable:4996)
int main() {
char* p = getenv("USERPROFILE");
const char* dllpath = "C:\\Users\\{here i need to write p value but how?}\\Desktop\\ExterTi\\req\\sk.dll"; // here
//cout << dllpath << endl;
system("pause");
}
how to format values like python in c++? like ...
ip = "192.168.2.1"
print(f"ip => {ip}") # output ip => 192.168.2.1
i mean i need to write customer's current c:\Users{currentUser} i got it but i don't know how do i write this value