Category "c++"

Unreal Engine 4 load Video in UMediaPlayer from link using c++(Low Level)

i am try to load video in media player using link but we can`t play video in low level(C++) but high level(BluePrint) is working fine here is my C++ coding plea

BOOST : terminate called after throwing an instance of 'boost::wrapexcept<std::out_of_range>

binance-gateway.hpp: #include <boost/asio.hpp> #include <boost/beast.hpp> #include <boost/beast/ssl.hpp> #include <boost/json/src.hpp> #

when I input string instead of integer then why it does print 0 and 1 on VScode?

when I input string instead of integer then why it does print 0 and 1 on VScode? #include <iostream> using namespace std; int main() { int a , b ;

How can we change behaviour of c++ method depending on initialization parameter?

In python I can write something like class C: def __init__(self, mode): if mode == 0: self.f = self.f0 elif mode == 1:

How to insert a documentation comment in sublime text

In Sublime Text, I know that Ctrl + / comments the current line, and Ctrl + Shift + / inserts a multi-line comment at the cursor. How to insert a documentation

*char conversion to/from bool in call to strstr

I have code that is supposed to remove all characters in one C-string from another. The problem arises when I try to use the function strstr: both an array and

outputing Regex to new file C++

I am using regex to take the integers out of a file called grades.txt (attached list, no they're not actual grades). When I do std::cout<< match[0] <&l

Disable editing QFile

The problem is the following, there are blob files in the DataBase with a various documents in it. It can be .pdf, .txt, .docx, and so on. Further through the f

How to link cuda library to cpp project/files with Cmake?

I am trying to write a gui program using the gtk libraries and do some matrix operations with the cuda libraries, however I get an error when trying to link the

concepts template argument deduction

The concept below has two template parameters but only one is specified during usage. Is T always deduced and InnerType always the parameter that needs explicit

Slicing string character correctly in C++

I'd like to count number 1 in my input, for example,111 (1+1+1) must return 3and 101must return 2 (1+1) To achieve this,I developed sample code as follows. #inc

Is there any way to reference floats as a glm::vec3

I have floats in a context float* floats = calloc(3, sizeof(float)); float& x = floats[0]; float& y = floats[1]; float& z = floats[2]; How do I ass

Why is substitution failure in parameter mappings considered ill-formed?

In this code, template<class T, class U> concept always_true = true; template<class T> concept always_true_if_tagged = always_true<T, typename T

Why original root is not changing in main function (Flatten Binary Tree to Linked List)? [duplicate]

https://leetcode.com/problems/flatten-binary-tree-to-linked-list/ i am talking about function "flatten", I know i can do it without making ano

How to draw in Cinder concurrently?

I'm trying to launch 4 standard C++ threads, each drawing a line, but an abort() gets called in runtime. I try to adhere to this example, pass over the GL drawi

using declval with reference types

I would like to understand how the assignment of int & to double below in conjunction with declval works? Is T deduced to something other than int & ? #

Creating reusable templates in Cairo

I'm using Cairo (Cairomm in C++) with its PDF surface to create reports from JSON data, and would like a header and footer on each page I write. At the moment I

Terminating a particular thread on specific condition

I have a program, where there are multiple threads running in an infinite loop. Each thread can handling a certain number of tasks say MAXTASKFOREACHTHREAD. A n

Why using alignof on non-typed types is valid?

The data shows that alignof is used type-id, but why I can use Eigen::Matrix4f like below. Eigen::Matrix4f t_localizer = ndt.getFinalTransformation(); std::cout

strlen defaulting to '40'?

new programmer here starting with the basics. I need to write a code that checks for the length of a string (line) and does things with it. I'm working on getti