So,I'm trying to build a small app that watches my MQTT server for messages and presents a widget with the MQTT JSON content for every message it sees. The logi
So try to write a program that allows the user to range the number of rows in the program. I was unable to figure out how I was able to do so using a char array
May I ask if we are allowed to explicitly call base class constructor in derived class? (if not, why?) I'm asking this question because I wrote the following to
I'm trying to create a python library, written in c++, using boost-python, and mingw to compile. c++ Code: char const* greet() { return "hello, world"; } #i
I have a c++ class with several constructors: MyClass(const std::string& configfilename); MyClass(const MyClass& other); I have python bindings for thi
I have a reference to my object of type MyType, but I need to call a function, say myFunction that takes a std::unique_ptr<MyType>. What is the correct wa
code : https://gist.github.com/Naseefabu/173c928603e564879683ccdf10d9d0f8 When i run this and print the response to the console: Sending GET /api/v3/time HTTP/1
Is there any STL/Boost function in C++ that allows me to find the indices of all unique elements in a vector? I have seen many solutons to find unique elements,
I am working on a simple raytracer in c++. I am currently implementing an intersection function but have encountered some issues. For some reason, the collision
The Human class turned out to be non-copied, since it contains a field of type unique_ptr, for which the copy constructor and the copying assignment operator ha
I have implemented Tarjan's algorithm to find strongly connected component in a graph and getting Segmentation fault for some large input. #include <iostream
This is my project : https://github.com/Naseefabu/HFTBOT/blob/master/src/main.cpp When i try to build it, Error : https://gist.github.com/Naseefabu/5a114956f39b
I wonder if there is any advantage putting join() not immediately after launching a thread? std::thread t(func); // some code ... t.join(); does it give you
I am learning the basics of CPP programming. I came across this basic recursion question which I'm unable to understand. The output is 1 2 3 4 5 but I don't und
There is a client (company). The client has contacts. You can link any number of contacts to a specific client. Let's say you open the client you need. Then you
I'm trying to expand arguments to a variadic function. Code below works perfectly fine template<typename T> int printMy (const T& f)
I want to implement this code by finding user input data of male and female percentage of a school. But I found some difficulties finding the calculation of mal
I am using a very simple proto where the Message contains only 1 string field. Like so: service LongLivedConnection { // Starts a grpc connection rpc Conn
I'm trying to load a file to be a HTTP response with Boost.Beast, but it doesn't work on Windows. My code is similar to this: typedef boost::beast::http::respon
About std::filesystem::is_regular_file(path), cppreference.com says: Checks if the given file status or path corresponds to a regular file […] Equivalen