#include <iostream>
#include <string>
using namespace std;

int main() {
    std::string drive, path, file, extension;
    std::cin >> drive;
    std::cout << "Drive letter: "<< drive <<"\n";
    std::cin >> path;
    std::cout << "File path: "<< path <<"\n";
    std::cin >> file;
    std::cout << "File name: "<< file <<"\n";
    std::cin >> extension;
    std::cout << "File extension: "<< extension <<"\n";
    std::cout << drive << ":" << path << "\\" << file << "." << extension << endl;

    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: