21 questions
Nice to meet you.This is my first time asking a question.I am currently working on making my own bi-directional lists using pointers in C++ without using STL.In the midst of this, I have written to th...
How do I write vector literacy?Source code 1 is running normally, but source code 2 shows warning.C++ I just learned itIn the past, unsigned was something that was told to be very carefulunsigned It's...
Please let me know if there is a way to check if there are any elements in the set without using for or auto
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...
Using jstl fmt tag on jsp Attempt to compute the date. Date is data is This will be taken to the string in the format 1986-01-20.Current Date - Deadline Date = Few days left I'm trying to use it, but ...
How do I declare the same type of it in the for statement in the code below?It doesn't come out properly even if I use typeid My prediction is std::deque::iterator, is that right?#include <iostream...
Please explain which one to use when sorting vectors in descending order, which one do you prefer?std::sort(numbers.begin(), numbers.end(), std::greater<int>());std::sort(numbers.rbegin(), numbe...
How do I erase the nth element in std::vector?How do I write functions such as erase() in the source code below?std::vector<int> vec;vec.push_back(6);vec.push_back(-17);vec.push_back(12);vec.era...
- 1 - | » |
© 2024 OneMinuteCode. All rights reserved.