Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [c++]

C++ is a general-purpose programming language. Use this tag for questions about/utilizing C++. Do not also tag questions with [c] unless you have a good reason. C and C++ are different languages. Use a versioned tag such as [c++11], [c++20] etc. for questions specific to a standard revision.

c++
0 votes
0 answers
16 views

Synchronize three Threads in C++ one after the other

This is in continuation to this really nice one: https://stackoverflow.com/a/33500554/22598822. That post was for the sequence (t1 & t2) --> t3. Let's say I have a program running, and there ...
barak's user avatar
  • 23
1 vote
1 answer
38 views

explicit deleted constructors - does this matter?

When marking a constructor as deleted, i.e. class MyClass { // ... MyClass(int x) = delete; // ... }; is there any effect to marking the deleted constructor as explicit? i.e. ...
einpoklum's user avatar
  • 127k
-1 votes
0 answers
25 views

What does "+ +" (with space between + operators) do in C++? [duplicate]

The following code: float a = 1.5; float b = a + + 1.2; compiles and actually returns 2.7 for b. Why does it compile, shouldn't the extraneous + be flagged as a syntax error? It compiles on several ...
Nick Gnedin's user avatar
0 votes
0 answers
13 views

How do I create CRUD in C++ and connect it to a database. A sample code or link to specific Youtube tutorial will be helpful. Thank you [closed]

I do not how to Create, Read, Update, and Delete database in C++ I tried to install mysql on my computer and I cannot connect it. My laptop's operating system is windows. I am finding it difficult to ...
HeartAndSoul's user avatar
-11 votes
0 answers
53 views

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff8ed191184, pid=51412, tid=0x0000000000009a34 [closed]

I am writing protection for the maincraft cheat in the form of a native and when I added lazy importer I started having such errors # A fatal error has been detected by the Java Runtime Environment: # ...
Максим Шуриков's user avatar
-2 votes
0 answers
14 views

Qt6 QSGTexture not shown inside QQuickItem using custom shader classes

I try to show a simple texture through opengl and Qt6 using custom shader classes. I created a QQuickItem which uses the updatePaintNode override to apply the QSGTexture to the custom Shader. When I ...
adebono's user avatar
-9 votes
0 answers
51 views

Chinese character turns into �� or @@ or just nothing [closed]

For example: In run and debug: In terminal: When I input any Chinese, the debugging interface will show that the value of str1 is �� or @@ or just nothing, and it's a little unstable (but � is ...
TheSingingSands's user avatar
1 vote
0 answers
24 views

How do I create a User Customizable popup menu from an existing CMenu?

I use MFCs CMenu to create right-click popup menus for many user commands (C++ using VS 2022). Is there already a framework for allowing user customization of these popup menus? Meaning the user will ...
Dev Dabo's user avatar
-1 votes
1 answer
26 views

getting "expression list treated as compound expression in functional cast" CE, but everything looks just fine

I tried building this: whole code (unordered_map.h): https://pastebin.com/u9aMaqRp test: https://pastebin.com/KqrKwNt0 and got a CE out of nowhere...? getting a strange compilation error while ...
Riabov Vladimir's user avatar
-1 votes
0 answers
47 views

my code is showing wrong output in VS Code what should I do?

My code is showing wrong output in VS Code of my system whereas in online compiler and VS Code of other system it is working correctly how can i fix this issue. Here is the code below #include <...
Chandraprakash Sahu's user avatar
0 votes
0 answers
8 views

Create nvblox depth image from sensor message pointcloud2

I have a rosbag2 with sensor_msgs/msg/PointCloud2 messages. I am using Nvblox. First I would like to ask if there is any way to create a depth image from the point cloud data. Second I would like to ...
GB1234's user avatar
  • 1
-6 votes
0 answers
57 views

Update: convert Delphi code to C++ in 2025 [closed]

I know this question has already been asked : old discussion on SO about 15 years ago. What would be the answer today in the presence of many LLM options like ChatGPT, Copilot etc... Can they ...
Franz's user avatar
  • 1,965
0 votes
0 answers
10 views

Using GDALWarp to combine and crop HGT files

I'm trying to take a bounding box, and crop only that section from whatever source amount of HGT files are needed. I see it should be possible from this. Using GDALWarp with the following results in ...
nathansizemore's user avatar
-3 votes
0 answers
21 views

Getting values from xml string with pugi [closed]

I have the following xml : <Ingredients attribute="true"> <Banana id="23" val="1" /> <Flour val="0.96" /> <Apple id="...
EricFlorentNoube's user avatar
0 votes
0 answers
41 views

Coroutine awaited in parameter list breaks another parameter?

I've got the following code https://godbolt.org/z/nehcPdxGe #include <boost/asio.hpp> #include <boost/asio/awaitable.hpp> #include <boost/asio/co_spawn.hpp> #include <gtest/gtest....
peper0's user avatar
  • 3,171

15 30 50 per page
1
2 3 4 5
7