886 questions
When is the virtual constructor used for C++?Virtual constructors seem to be a really useless feature, but I don't know when. Isn't superclass constructor called automatically when inherited? Why both...
Hello, I am a beginner developer who is developing games with C++ and DirectX.My question is that not only games but also various design patterns are applied when developing softwareAmong them, Single...
Result of code: Question: Although I lack the concept of itator, I'm studying how to write while looking at the code to get a better sense of it.I don't understand the code below in the last for state...
Please let me know if there is a way to check if there are any elements in the set without using for or auto
#include <iostream>using namespace std;class Test{ private: int num; public: Test(int n) : num(n) { cout << Constructor : << n << endl; } Test(const Test& copy) : nu...
Hello.The code I'm trying to do,class Shape { protected: int type; // POINT, CIRCLE, RECTANGLE, or TRIANGLE public: virtual double area()=0; virtual bool isContaining(const Point&)=0; enum {...
Hello, everyone I have a question because there was a slight error in writing the c++ and stl codes.The code with the error first is as follows. An error occurs in the annotated area is processed.temp...
Hi, everyone. I got a lot of help from the last question and I have another question.If you look at the c++ code, there's a code that says #if and it's 1, 0, what's the role?And when is #endif used?#i...
#include <iostream>using namespace std;class SoSimple{private: int num;public: SoSimple(int n) : num(n) { cout << New Object : << this << endl; } SoSimple(const SoSimple&...
Is it impossible to enter the private member variable directly as std::cin?Also, why do the following problems occur?I'm curious Below are all the class header files.class Bank{private: int Account; ...
« | - 40 - | » |
© 2024 OneMinuteCode. All rights reserved.