c++표준 tag

5 questions


2 answers
33 views
0
[c++] Can you string objects from different classes that inherit the same class like an array?

This class is AB, C, D are inheritedAnd the objects of B, C, and DCan you tie it up like an array?arr[0]=B objectarr[1]=C objectarr[2]=D objectIs it possible to access the index in this way?

2 years ago

1 answers
23 views
0
Is 0 a decimal or an octal?

Is 0 a decimal or an octal?I know it's zero regardless of whether it's decimal or octal, but I'm just curious.

2 years ago

1 answers
22 views
0
Insert c++ Array Data (Full Beginner)

Hello, I am a student who is studying while listening to C++ class.I'm working on a program because I have a task. int value;int data[n]; for (int i=0; i> value ; data[i] = value;}Like this I'd lik...

2 years ago

1 answers
27 views
0
I just started C++, so I'd like to ask for your help.

https://github.com/warren-126/RSJp-cpp/blob/master/RSJparser.tcc// The 305th line in the filetemplate <class dataType> dataType as(const dataType& def = dataType()) { // specialized outside...

2 years ago

1 answers
26 views
0
C++ questions, please ㅠㅜ

#include <iostream>#include <vector>#include <string>class Npc {public: std::string npc_arr;};class Guard :public Npc{public : std::string npc_arr; Guard(std::string npc_arr);};Guard...

2 years ago

© 2024 OneMinuteCode. All rights reserved.