Category "c++"

can you help me to fix this code about bubble sort? [closed]

i am newbie, i don't know how to fix it? i don't know how to call function void bubblesort #include<iostream> using namespace std; vo

is there any way to reduce the Tags browse time in OPC UA client?... while connected OPC UA Server

I have reduce and checked with SamplingInterval and PublishingInterval..values There is no impact. can you suggest any way? Let me know.

Is there a function that can limit a program to run only under 2 minuets?

I am writing code that terminates by entering e or t , and I want everything to work under two minuets, but I cant get things to work once I include the delay o

Fold in Scade Suite is confusing me

So I know how the reduce, accumulator and how fold works in C++, Python, etc... But for some reason in Scade Suite it's kinda confusing to me. Scade Suite Examp

How to store every sequentially increasing sequence in a vector into new vectors

I have a vector with the following elements: std::vector<int> vectorOfInts{ 95, 137, 138, 139, 140, 156, 157, 158, 159 }; Problem: I'm trying to store eac

Use multiple images for batch inference cppflow C++

I'm trying to use cppflow library in windows 10 x64 machine in VS2019 C++. I want to inference my model for batch of images (vector <cv::Mat> ). I write a

Importing PDB (Protein Data Bank) files directly into Unreal Engine 4

I am building a project that will use Unreal Engine 4 to display protein models. Currently I cannot find a way to directly import PDB (Protein Data Bank) files

Variadic template packed argument to std::vector

I'm new to templates and I don't really undestand why this doesn't work. I expected the vector to be constructed with those values. main.cpp template <typ

(declared implicitly) cannot be referenced -- it is a deleted function

With the following code, I'm facing an issue. ABC.h namespace abcd { class ABC { public: ABC() = delete; ABC(const std::string&am

How to originate a call in FreeSWITCH using C++ application

I am new in FreeSWITCH library. I have explored library at certain level. I have tried originate command to initiate call using fs_cli and also received events

Can we use multiple stack in Qt's Undo Framework (Command Pattern )

I am having a QgraphicsView which contains multiple QGraphicsItem. I have some features like zoom-in, zoom-out, Hide - Unhide selected item, Undo-Redo. To imple

Main thread usage loop advise needed

Im building an app on Linux in C++, and I find it convenient to move all periodic tasks to other threads. This is my first multi-threaded Linux app(and basicall

Inheriting a class and re-using its constructors issue missing in the base class

In the following program, struct B has two user-defined constructors: one from int and another from int&& (clearly this is not very practical). And an o

Why use devnull with subprocess.check_output in python2?

I have inherited a complicated (to me) toolbox from a PhD student before me and it uses python2 instead of 3 since it's older. The main file is in python2 and u

Maximum Frequency Number in an array using Hashmaps

Problem: You are given an array of integers that contain numbers in random order. Write a program to find and return the number which occurs the maximum

I'm Trying to open a stream in PortAudio

i'm using this api: Pa_OpenStream() // Open line-in stream err = Pa_OpenStream(&m_stream, &m_inputParameters, &

Trouble getting gtkmm-4.0 to work on macOS Monterey

I'm having trouble getting gtkmm-4.0 to work on Mac OS Monterey. Here is a simple C++ application that uses gtkmm4. // helloworld.cpp #include <gtkmm.h>

How can I get a consistent, unique, identifier for a unique class combination?

I need a way to identify a unique combination of template types that gives me an easily indexable identifier. I have the following class: #include <cstdint&g

Qt: Qt 6.1.1 Failed to create vertex shader: Error 0x80070057

Guys! I'm a new user of qt and I faced a problem with qml. This issue has already been discussed in this article, but for python. I write in C ++/Qt 6.1.1, QtCr

How to initialize a struct to 0 in C++

Here is a related C answer that doesn't work (as a zero initializer for a struct) in C++: Initializing a struct to 0. One of the solutions presented is this: my