Skip to content

c++/c #412

Description

@antoinebrt-prog
#include <iostream>

#include <cstdlib>

#include <string>

int main() {

    std::string pseudo;

    std::cout << "Entrez le pseudo : ";

    std::getline(std::cin, pseudo);

    std::string url = "https://www.google.com/search?q=" + pseudo;

#ifdef _WIN32

    system(("start " + url).c_str());

#elif __APPLE__

    system(("open " + url).c_str());

#else

    system(("xdg-open " + url).c_str());

#endif

    return 0;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions