I have been reading this paper: I'm not very proficent in the world of coroutines yet. I have read a lot but never used it, and after reading the paper and some other Internet resources and understanding the difference between stackless and stackful...
I wrote the following program where if a class have a non-static data member then when an object of that type is passed as argument by value, then it can't be used in a constexpr context. After searching for the issue on the web, I came across this...
My question might be useless . But i'm having issues in building logic in C++. i just need a way to learn c++. i have been trying to have lectures. they help me in just writing a program. Logic building is something else.
I just started learning Windows Programming. I had a question that, what is the difference between using C vs C++ to make programs. What are the functionalities I can get in one and not the other, and what is a good resource to learn about the...
The code below is the module that is supposed to check if another game should be played. However, even when typing yes or no, it still detects newGame as false, thus causing the while loop to iterate indefinitely regardless of input. What is the...
I've broken my arm and am developing a one-handed keyboard application for Windows that mirrors the keyboard layout when the space bar is held down, allowing for one-handed typing. The mirroring function is operational using a timer, but this is not...
I am working with a C++ dynamic link library from xatlas that exports a function with the following signature: __declspec(dllexport) void xatlasSetPrint(xatlasPrintFunc print, bool verbose);. The xatlasPrintFunc is defined as typedef int...
I'm a C++ beginner and was trying to write a program that wrote variable amount of values to a file, before summing them and displaying the total. However, instead of summing the values, my program acts like they are a string and appends them...
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...
I try to run a code which has a random number generation algorythm as a part of it. However, it doesn't work and compiler warns: expected a ; where :: for input and output operands in inline assembler shall be. For similar function dealing not with...
I'm working on a personal project, involving an ESP32-S2, OLED (SH1106) and generic button encoder. Right now I'm at a stage where I want to put together a simple menu system that's just 3 levels deep.
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.
I tried to imports ALGLIB to my QT creator C++ project which is probably big.
The .exe compiles fine both in release and debug mode and if I go to the debug and release directory these .exe run perfectly fine. I can also run the program in release...
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...
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:
Вы не можете начинать темы Вы не можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы не можете добавлять вложения