Anonymous » 03 мар 2024, 03:07
Последнее сообщение 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 » 02 мар 2024, 19:36
Последнее сообщение Anonymous «
Anonymous »
Is it better to use std::memcpy() as shown below, or is it better to use std::copy() in terms to performance? Why?
char *bits = NULL; ... bits = new (std::nothrow) char[((int *) copyMe->bits) ]; if (bits == NULL) { cout bits, ((int *) copyMe->bits)...
Anonymous » 02 мар 2024, 19:35
Последнее сообщение 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 » 02 мар 2024, 18:59
Последнее сообщение Anonymous «
Anonymous »
Could you C++ developers please give us a good description of what RAII is, why it is important, and whether or not it might have any relevance to other languages?
I do know a little bit. I believe it stands for Resource Acquisition is...
Anonymous » 02 мар 2024, 18:58
Последнее сообщение Anonymous «
Anonymous »
Question
Two friends Niya and Druva visited a math’s magic zone. They had decided to play a puzzle game that asked them to alternate the order of Negative numbers and perfect square numbers. By using a quick sort algorithm and some rearranging...
Anonymous » 02 мар 2024, 18:49
Последнее сообщение Anonymous «
Anonymous »
I wrote a namespace for linear algebra in C++, in which I have defined a class for Matrix. While overloading operators, I am getting a no match error for operator>> . I have declared the input operator as friend in the matrix class.
Anonymous » 02 мар 2024, 18:49
Последнее сообщение Anonymous «
Anonymous »
I have a problem processing packets from the COM port. This port reads at a speed of 115200. A lot of data from this port is lost. The buffer overflows almost immediately. In the code I attach, I try to remove the overprocessed buffer on the fly....
Anonymous » 02 мар 2024, 18:34
Последнее сообщение Anonymous «
Anonymous »
Our class was challenged by a professor at uni that if we were able to find a algorithm that fittingly describes the following Big-O-Notation, we'd instantly pass his class. I wanted to ask if any of you know how this could be done since I've been...
Anonymous » 02 мар 2024, 18:33
Последнее сообщение Anonymous «
Anonymous »
I'm designing and programming an elevator-like robot for a high school project. Could I possibly do anything to make this any simpler? Or better? I have attached a picture of my design that I made in AutoCAD Inventor with labels.
Anonymous » 02 мар 2024, 18:29
Последнее сообщение Anonymous «
Anonymous »
I have to dynamically create push buttons depending on user inputs, therefore if the user gives a large input number, the widget containing the push buttons has to have the ability to scroll up and down.
Anonymous » 02 мар 2024, 18:28
Последнее сообщение Anonymous «
Anonymous »
I am trying to attach a servo on an Arduino (branded) Robot but not sure whhich pin to use for the bellow code. Most people seem to recommend to use pin 9 and 10 to control the servo for arduino Unos. However, I can't use Pin 9 because that is...
Anonymous » 02 мар 2024, 18:21
Последнее сообщение Anonymous «
Anonymous »
Everything works perfectly fine but the thing is that everytime a user creates an account, it replaces the old credentials stored in the already existing file. I want to be able to store multiple user credentials so that multiple users can login....
Anonymous » 02 мар 2024, 18:20
Последнее сообщение Anonymous «
Anonymous »
Processing large amounts of data (gigabytes) I use indexes to data arrays. Since access to data could lead to cache inefficiency, I want to cache some data from array together with the index which gives dramatic speedup for operations through...
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения