I am trying to read user entered data from the stream and then store it in a custom String class. To my best knowledge, std::getline() can rou
I'm new to C++, and am learning using a Mac and VSCode. I'm getting an error with my include statement: #include "glfw3.h" fatal error: 'glfw3.h' file not found
I'm developing android marine navigation client. The client should receive nautical chart images from c++ server. I'm sending data via socket. (from c++: Client
Consider two vectors: vector<int> A = {1, 4, 3}; vector<int> B = {5, 7, 1}; It's given both vectors are of equal length. If I need to use element b
Using the msvc with the /std::c++20 flag on, I can't seem to get the wait call compiled. simple example: #include<future> std::future<int> fut = st
xcb_xv_put_image(m_pConnection, m_xvPort, m_xWindow, m_xGC, m_xvid, 0, 0, m_nWidth, m_nHeight, 0, 0, geom->width, geom->height, m_nWidth, m_nHeight, size,
What is struct Cleaner <T*> mean? Is it specific the second Cleaner can only accept the type of pointer? what is the terminology of this usage in C++? te
I was reading C++ Is it possible to determine whether a pointer points to a valid object? and the correct answer in this thread is that no, yo
How would someone go about implementing a factory function for a templated class? Either my google searches aren't looking for the right thing, or I am misunde
Why this code doesn't compile ? #include <iostream> #include <typeinfo> template <typename ...Ts> void f(); template <typename T> void
I want to iterate over a vector and when reaching the end it should loop back to the front. This is a small example which does not compile #include <vector&g
I am trying to draw a trajectory on an image and saving these trajectory points as std::vector<cv::Point> trajectoryPoint and I would like to access the
There is a Student class inherited from Person. And there is Student class inherited from University. I want to change the parent class Person, University based
I am using GCC version 8.3 and have a switch statement: #include <iostream> enum class Type : char { Value1 = 'A', Value2, Value3, Value4
I've tried to create my new Unreal Engine 5 project from a tutorial with c++ and when I try it comes up with this: Running C:/Program Files/Epic Games/UE_5.0EA/
Let's consider the following scenario: take a Windows Server instance (2012 or newer), with multiple user accounts. Each of those accounts needs to run an indiv
I'm trying to use packages that require Rcpp in R on my M1 Mac, which I was never able to get up and running after purchasing this computer. I updated it to Mon
Recently I'm configuring a new project in language C and C++ using both CMake and llvm Clang with Visual Studio Code for a program where EVERY exact object or l
I have some pretty simple questions. What is the main difference between node.h and napi.h. What should I use for normal/personal use case. Why are there more "
I have some code like these (from cppcon), when inserting a non-const pair into a unordered_map, the performance is very different to inserting with a const one