vector tag

13 questions


1 answers
97 views
0
To store references in a vector?

std::vector<int &> hello;If you try to save references of int together error C2528: 'pointer' : pointer to reference is illegalAn error appears.I'm not good at using a pointer, so I'm going ...

2 years ago

1 answers
65 views
0
A C++ core dump error occurs.

When you know the minimum and maximum values, you want to store all the integers in between in an array, including these.#include <iostream>#include <vector>int main() { std::vector<int...

2 years ago

1 answers
124 views
0
Structure variable forward declaration, prototype declaration error

I wanted to use a queue with a Problem structure variable as a type, so I declared a variable, but there was an error, so I'm uploading a question.For example, if you have a structureProblem{};I want ...

« - 2 -

© 2024 OneMinuteCode. All rights reserved.