I was wondering if anyone had any advice on how to take a user input from a std::cin and enter it into a variable. The variable would be used to add an object t
I have input keys that can cheaply be converted to a uint64_t (ie, the input contains less than or equal to 64 bits). Each unique key (not yet in the map) will
I'm trying to add code to my AppDelegate. But I am not sure where to do it - and how exactly. I am trying to achieve Deep Linking, so I am trying to add my code
I'm trying to generate a code coverage report using visual studio 2022, using cmake + gtest, but my vs2022 always doesn't work. I've rummaged through google and
There is a QLineEdit in which you need to enter a phone number. Gave him a mask ui->lineEdit_4->setInputMask("+7\\(999\\)999\\-99\\-99;_"); Further, when
I have a question regarding connecting to SUMO as a second client. I have found the following tutorial from Sep. 2021: https://www.academia.edu/49581640/Manual_
I need an orthographic projection matrix in OpenGL and I use glm for it like this: glm::ortho(0.0f, width, 0.0f, height, zNear, zFar); But this does not produc
I'm a novice with the boost graph library. I'm trying to use the sequential_vertex_coloring algorithm (https://live.boost.org/doc/libs/1_79_0/libs/graph/doc/seq
I attached an image which is a row of different colours puzzles and the code runs perfectly fine except for the figures that supposed to be shown ... the figure
How could I call a MFC Regular DLL in Dart/Flutter? I successfully called a pure (No MFC) C++ DLL. But when I pasted the same code into a new-created MFC regula
Following function template is defined in Foo.h. #include <array> using namespace std; template<unsigned N> array<int, N> gen_arr() { array
I have a class array inside which I have declared an array its size and length. I am trying to merge two sorted arrays by creating the third array on the heap a
Searched for about 1 hour and still unable to find any relevant search results. I want to wait on multiple pipes in a single thread, but unable to convert the f
This is a generic question about templating, I am using advance as an example. Assume there are reasons I can't use ADL or hidden friends here. The definition o
#include <iostream> #include <map> using namespace std; int main() { map<int, int> ma; // 원소를 추,
I am trying to understand std::find(). Below is my code. std::set::find searches the container for an element equivalent to val and returns an iterator to it i
I have 2 classes: A and B. I need to pass instances of them to a function that will push them into a vector. I want to have good efficiency in my program, so I
Coming from a good foundation in java to c++, I'm really confused on why when we use the cmath library we don't have to call it like: classname.function like we
What are undefined reference/unresolved external symbol errors? What are common causes and how to fix/prevent them?
I'm trying to make similar to std::round() function using SSE(1,2,3) instructions but have some issues with certain values and/or logical operators. Here's my c