Anonymous » 03 мар 2024, 09:53
Последнее сообщение Anonymous «
Anonymous »
My team has encountered a deadlock that I suspect is a bug in the Windows implementation of SRW locks. The code below is a distilled version of real code. Here's the summary:
Main thread acquires exclusive lock Main thread creates N children...
Anonymous » 03 мар 2024, 09:31
Последнее сообщение Anonymous «
Anonymous »
You are the coach of a basketball team with a maximum total player capacity of K. You have a list of player types of size N, where each player of one type contributes a certain number of points to the team's overall points, and the number of players...
Anonymous » 03 мар 2024, 09:16
Последнее сообщение Anonymous «
Anonymous »
I have used the glfwgetwindowpos and glfwsetwindowpos with imgui's getmousedragdelta to try and move the parent glfw window using imgui. What I am trying to accomplish is to have an imgui window where I am able to drag on it, but rather than moving...
Anonymous » 03 мар 2024, 09:13
Последнее сообщение Anonymous «
Anonymous »
enter image description hereI had downloaded the mingw compiler for compiling C program source code and also have pasted its bin folder location in the environment variable PATH . The command prompt also tells me that the compiler is installed in...
Anonymous » 03 мар 2024, 09:12
Последнее сообщение Anonymous «
Anonymous »
Platform: Windows 10, Visual Studio VC142
I'm using Boost 1.80.0 in my project. I've built Boost and been using modules such as Container without issue , however I tried to use Boost.Serialization and I get a link error:
Anonymous » 03 мар 2024, 09:10
Последнее сообщение Anonymous «
Anonymous »
I have a class StreamRead that represents a file, that I'd like to pass to a constructor for other classes, like a Bitmap for instance. However, I cannot pass an unnamed temporary to Bitmap directly.
Anonymous » 03 мар 2024, 09:00
Последнее сообщение Anonymous «
Anonymous »
I'm currently trying to create a game in C++17 with SDL2 (and SDL_ttf). When I'm trying to initialize the text renderer, I'm getting an error that says: Exception thrown at 0x00007FFFB5A19116 (SDL2_ttf.dll) in projVSC.exe: 0xC0000005: Access...
Anonymous » 03 мар 2024, 08:21
Последнее сообщение Anonymous «
Anonymous »
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
Anonymous » 03 мар 2024, 07:59
Последнее сообщение Anonymous «
Anonymous »
I am serializing a set of contents, indexed by multiple properties using boost::multi_index_container, and a params struct, into a binary archive which I want to deserialize latter. But the archive created using boost 1.74 is unreadable (Invalid or...
Anonymous » 03 мар 2024, 07:56
Последнее сообщение Anonymous «
Anonymous »
I am currently working on a project involving property handlers, specifically targeting .txt files. As a newcomer to this field, I have encountered an issue that I'm struggling to resolve and would greatly appreciate your guidance.
Anonymous » 03 мар 2024, 06:51
Последнее сообщение Anonymous «
Anonymous »
I am trying to make a simple tool that requires some lookup on a fixed key-value dataset, so I try to lazily throw all data to a hashmap in the header file:
/** main.h */ #include #include using namespace std; const unordered_map test = {...
Anonymous » 03 мар 2024, 06:50
Последнее сообщение Anonymous «
Anonymous »
I am trying to make an application where there is a looping background music. I have added the bgm m4a file into the project via CMake. The code in MainWindow is below.
ui->setupUi(this); screamer = new QMediaPlayer(this); audioOutput = new...
Anonymous » 03 мар 2024, 06:34
Последнее сообщение Anonymous «
Anonymous »
Windows 11, Visual Studio 2022, C++, MFC I created an app and edited in a few controls. One is named c_quadratic_input. When searching the code the name is not found. Where can I find a tutorial that tells me how to use this item?
Anonymous » 03 мар 2024, 05:43
Последнее сообщение Anonymous «
Anonymous »
I wrote the following code that has two lambdas. One of them explicitly captures i while the other doesn't. Note i is constexpr so we don't need to capture it explicitly.
My question is why func(lambda2) doesn't compile while func(lambda) does?...
Anonymous » 03 мар 2024, 05:41
Последнее сообщение Anonymous «
Anonymous »
I am trying to write a chrono::zoned_seconds object as text to a file and then retrieve it and construct another chrono::zoned_seconds object later. How can this be done in a fairly efficient way?
Anonymous » 03 мар 2024, 05:41
Последнее сообщение Anonymous «
Anonymous »
I can send and receive data on different threads using the TCP protocol as demonstrated in the following code, how can I do the same using the UDP protocol?
#include #include #include using namespace std; // Function that receive data from client...
Anonymous » 03 мар 2024, 05:20
Последнее сообщение Anonymous «
Anonymous »
I am serializing a set of contents, indexed by multiple properties using boost::multi_index_container, and a params struct, into a binary archive which I want to deserialize latter. But the archive created using boost 1.74 is unreadable (Invalid or...
Anonymous » 03 мар 2024, 05:19
Последнее сообщение Anonymous «
Anonymous »
I have used the glfwgetwindowpos and glfwsetwindowpos with imgui's getmousedragdelta to try and move the parent glfw window using imgui. What I am trying to accomplish is to have an imgui window where I am able to drag on it, but rather than moving...
Anonymous » 03 мар 2024, 04:57
Последнее сообщение Anonymous «
Anonymous »
I am trying to introduce openMP to a code to speed up the loop. The loop processes some json inputs and generates json outputs. The json output contains almost exclusively doubles or vector or doubles. and We have some established expected results...
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения