886 questions
Question detailsAs per the title, I would like to know how to downcast the base class to the derived class using the std::shared_ptr<> smart pointer.What I checkedFrom the reference site std::sh...
Why do C++ STL containers (vector in the example above) use a lot of typeef internally?I thought that the possibility of misuse would increase by defining member types as new model names in typeef.I w...
Question detailsI'd like to compile a GLSL shader and run the shader by loading the binary file on the execution side.The following error occurs, what is the cause of this?What is invalid?Confirmation...
In the following cases, how do I write the initial value (2*2 array, value 1) for data?structure name { intx; inty;} std::shared_ptr<std::vector<std::vector<std;structure name>>>data...
In the following cases, how do I write the initial value (2*2 array, value 1) for data?structure name { intx; inty;} std::shared_ptr<std::vector<std::vector<std;structure name>>>data...
Question detailsThe following is a compilation of shaders with the source code characters (indeterminate number of characters), and the type is std::shared_ptr<std::vector<GLchar>>. Is the...
Question detailsThe following error occurs when I compile, but I don't know why.undefined reference to glfwInitWhat is the cause of the undefined reference?Include files, links, and so on.StatusFrameW...
include <iostream>#include <cstring>using namespace std;class Person{private: char *name; int age;public: Person(char * myname, int myage){ int len = strlen(myname) + 1; name = new char[...
#include <iostream>#include <cstring>using namespace std;private: char * name; char * company; char * tel; int position;public: Namecard(char * n, char * c, char * t, int pos) :position(p)...
I would like to create a matrix class object in C++ that meets the following conditions:The number of columns for the object is SObjects have 0 or 1 as componentsThe sum of elements in each row of obj...
« | - 4 - | » |
© 2024 OneMinuteCode. All rights reserved.