Questions tagged as 'c++'

1
answer

How do I develop a method of a binary search tree class

How do I develop a method of a binary search tree class, to return multiple elements of 5 in a list? C ++     
asked by 29.05.2014 / 20:29
1
answer

How to close the application console?

I run this program with the executable, but it does not close the console that remains open after executing, how to do this?     
asked by 17.06.2014 / 22:39
1
answer

How to convert pixels to RGBA for characters?

Having access to the pixels of any image through the SFML library, my goal is to capture them and convert them to characters by placing them in a new array (image) and then displaying it. For this I checked the size of the image: sf::Vector2u...
asked by 13.05.2014 / 23:28
1
answer

Update a ComboBox after opening QDialog

How do I update a ComboBox after opening a QDialog? The code below does not update if you have made an update to db. I have to close the application and open it to show the new data: Dialog::Dialog(){ carregar_comboBox(); } void Dialog::...
asked by 29.03.2014 / 19:08
3
answers

How to loop openMp to count rows in a text file?

How to loop through the OpenMP library to count the rows one file? #pragma omp parallel for for (string line; getline(file, line); ) { count++; } In this way it does not execute, it seems that it only accepts for in normal...
asked by 11.02.2014 / 17:14
1
answer

How to perform the parallelization of this code snippet using OpenMp

I'm trying to parallelize an activity using OpenMp . I have problems because after the first one of the code below the result is wrong. #include <stdio.h> #include <fstream> #include <sstream> #include <omp.h> #in...
asked by 17.02.2014 / 17:12
1
answer

Search for words in almost 1 million files

I'm looking for methods / ideas that can help me solve my problem. I have a folder / file structure that my program generates, so far so good. But what happens is that this folder already contains more than 900 thousand files. Each file of this...
asked by 19.12.2018 / 20:12
0
answers

Android - How to draw pixels using OpenGL ES 2.0

I have a CHIP8 emulator written in C ++, and I am making a port for android, the desktop version uses SDL and the pixels are drawn with SDL_Texture , however I do not have this feature within my reach, looking this source code I noticed...
asked by 03.01.2019 / 15:37
0
answers

OpenCV 4 in Visual Studio 2018

I'm trying to use the OpenCV library in Visual Studio, however I get the following error message:    LINK: fatal error LNK1104: Can not open file   'opencv_calib3d400.lib' The lib is in the C: \ opencv4 \ build \ lib \ Release location an...
asked by 21.12.2018 / 05:44
1
answer

Struct with JSON in C ++

I'm having problems inflating a struct using a JSON file, in fact I do not know how to do this, I've been searching the JsonCpp library, but I was not successful. Here's a simple example of my code: #include <iostream> using namespac...
asked by 08.12.2018 / 23:25