Anonymous » 05 мар 2024, 05:44
Последнее сообщение Anonymous «
Anonymous »
my code is currently displaying voltage, temperature, and current readings worth 0 on the arduino serial monitor. whereas last month the same code could display complete values. but now the values displayed are as follows
Anonymous » 05 мар 2024, 05:28
Последнее сообщение Anonymous «
Anonymous »
I've attempted to make a 2D collision simulator with variable squares that should run into each other. My code is able to work in one dimension in both the x and y axis or with one square going in the x axis and one square going in the y axis....
Anonymous » 05 мар 2024, 05:07
Последнее сообщение Anonymous «
Anonymous »
I've been learning C++ and using the Terminal for the last couple of months. My code was compiling and running fine using g++ and C++11, but in the last couple of days it started giving errors and I have had problems compiling since. The only...
Anonymous » 05 мар 2024, 04:59
Последнее сообщение Anonymous «
Anonymous »
I'm working on a program for a class. The prompt is Write a program that asks the user their name and the diameter or the pizza they want, calculate the area of the pizza using PI to four decimal places (3.1415) but show the area of their Pizza to...
Anonymous » 05 мар 2024, 04:22
Последнее сообщение Anonymous «
Anonymous »
I have been developing a calculator from scratch.
I have gotten to the part where i need to render numbers/symbols on the buttons and displaying them but I realize I need SDL_TTF for that, which I do not have when I downloaded SDL2
Anonymous » 05 мар 2024, 04:09
Последнее сообщение Anonymous «
Anonymous »
void MyGraphcisItem::updateChildItems() { QList items = this->childItems(); **updateChildItems(); } } QList items = this->childItems(); It takes too long. The more items there are, the longer it takes. Is there a way to avoid it? Actually, I wonder...
Гость » 04 мар 2024, 18:58
Последнее сообщение Гость «
Гость »
there is a code as below in the version 2.6.24 of kernel:
unsigned int __kfifo_put(struct kfifo *fifo, unsigned char *buffer, unsigned int len) { unsigned int l; len = min(len, fifo->size - fifo->in + fifo->out); /* * Ensure that we sample the...
Гость » 04 мар 2024, 18:39
Последнее сообщение Гость «
Гость »
As i said before i get an error when i run VimspectorInstall vscode-cpptools In the Screenshoot 1 I don't understand why python can't run these files and I don't know where to start. When I enter the checkhealth command I get the following.In the...
Гость » 04 мар 2024, 18:36
Последнее сообщение Гость «
Гость »
I am trying to specialize a templated function with a functional argument, but the compiler is unable to infer the proper specialization. I get compiler errors unless I am explicit about the function type.
Гость » 04 мар 2024, 18:30
Последнее сообщение Гость «
Гость »
I was playing with this code to check if an integer is a power of 4:
// C++ version bool is_pow_4(unsigned a) { return (std::popcount(a) == 1) && (std::countr_zero(a) % 2 == 0); } // C version int is_pow_4(unsigned a) { return...
Гость » 04 мар 2024, 18:30
Последнее сообщение Гость «
Гость »
Context:
We've recently upgraded from gtk2 to gtk3 and for this had to get rid of GtkGLExt as our OpenGL context as it does not support gtk3. Doing so we've decided to use wglContext and setting the render context ourself. We develop a heavily...
Гость » 04 мар 2024, 18:27
Последнее сообщение Гость «
Гость »
I was wondering that if we run multiple calls of async_resolve than in practice the io_context doesn't run more than one request at the time due to a known limitation.
Here's a sample example where I'd expect that each resolve request will yield...
Гость » 04 мар 2024, 18:21
Последнее сообщение Гость «
Гость »
Whenever I see examples of union, they are always different types. For example, from MSDN:
// declaring_a_union.cpp union DATATYPE // Declare union type { char ch; int i; long l; float f; double d; } var1; // Optional declaration of union variable...
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения