886 questions
I'm studying object arrangement. I don't know why the consonants and vowels of the entered values are separated and printed. Like this.Name: ㅣㅁㄱAge: 2Class number: 0Name: ㅣㅁㄱAge: 3Class number: 1Name:...
The problem embodies the functions, constructors, and destructors of ClassInfo In the main() function, enter (B511001, Kim Cheol-soo, 23), (B611002, Kim Young-hee, 26), and (B411003, Youngsoo Kim, 24)...
#include <iostream>#include <fstream>//http://is03.tistory.com/3 HOW to use eofusing namespace std;#define FILENAME data.txtifstream fin;class Matrix {private: int size; int numOfNonZero; ...
Hello. Thank you for your hard work.While looking at the explicit keyword I'm asking you a question while I was testing it alone.Code is class MyClass{public:MyClass(){}MyClass(int num) : imember2(num...
#include <iostream> #include <assert.h>using namespace std;class CircularQueue {private: int *mData; int mFront, mRear, mMaxSize;public: CircularQueue(); CircularQueue(int _data); ~Circula...
Where and how is the C++ member function located?First of all, my personal guess is thatEven if you create multiple class objects, the class's member variables are likely to set multiple areas and hav...
I'm trying to use a switch statement, but when I compile op, y, it says it's an uninitialized variable, so what's the problem?
I have a question because I don't understand the code of the second generator of public in the code below.The role of the code is http://blog.According to data from eairship.kr/168..After memory space...
The code below is a code that performs a substitution calculation with deep radiation.If you look at the annotated line, it says Student&operator= (Student&ref Can you make a constructor like ...
Like Python's class variable, C++ uses class variable, and I want to use it as a dynamic allocation.#include <iostream>class Some{ private: static Some* _A; public: void __setSome(int n){ thi...
« | - 42 - | » |
© 2024 OneMinuteCode. All rights reserved.