Category : visual-c++

This is what I’ve tried so far including my entire project code for the small class project game. Honestly struggle with arrays and don’t even know where to start. The project requirements were to Display a menu (use a switch statement to implement the menu) of actions. Then to display the user has chosen to ..

Read more

I have the following example with std::variant usage: #include <iostream> #include <string> #include <variant> class Cat { public: const std::string& getSound() const { return sound; }; private: std::string sound = "Meow."; }; class Dog { public: const std::string getSound() const { return sound; }; private: std::string sound = "Bark."; }; class House { public: void ..

Read more

I have class requete that take construction of requeste and Send the HTTP request to the remote host. I tried to add methode that contien the function http:write() . First example: CR::Requete::Requete(std::string const &target, Flux & flux, std::string const & content_request) :Content_(content_request), Target_(target) { // Configuring the HTTP GET request message auto const Versionhttp_ = ..

Read more