Questions tagged as 'c++'

1
answer

QuickSort with last element as pivot

The following code should receive a string of characters separated by space and sort them: #include <stdio.h> #include <stdlib.h> int particiona(int *vector,int inicio,int fim){ int i,j,guarda,aux; i = inicio-1, j = inicio...
asked by 26.03.2016 / 02:18
0
answers

Helps to porting part of Java code to C ++ [closed]

I'm in a project and my 'responsibility' is to carry the Java code for C ++ that uses OpenGL. I've done almost everything, but it does not work. I think the problem is in this class that I could not do very well [I changed the code in java and g...
asked by 29.01.2016 / 17:14
0
answers

How to get a JSON file and decode in C ++? read the Json file in C ++

I have a JSON file with employee data and I want to read this file in C++ to pass para a pendrive and export this file, how to proceed? Follows file JSON:    ":" Alexandre N. da   C.Neves "," ID ":" 213 "," PIS ":"...
asked by 08.04.2016 / 15:27
1
answer

list has not been declared

I'm doing the first part of a c ++ job in codeblocks and ubuntu and am getting the following errors:    1 - 'list' has not been declared   2 - no matching function for call   to 'No :: checkExistNo (int & std :: list &)' There is...
asked by 17.04.2016 / 00:35
1
answer

Pass Class Name by C ++ parameter

I'm having a problem, I need to pass the name of a Class via parameter, so that the function can create a new instance, this Class is the daughter of another Class called Control. The problem is that there is no way to know how many children thi...
asked by 17.04.2016 / 22:40
1
answer

Task queue or my own solution for thundering herd?

I'm developing a network server application in C ++ and I came across the thundering herd problem, since I designed to have multiple threads accepting ( accept() ) client connections simultaneously. p> By my searches, the most common s...
asked by 28.02.2016 / 03:36
0
answers

3D animation with C ++ [closed]

Hello, does anyone know of any APIs in C ++ that I can do 3D animations? If possible with blender support. I have already used Horde3D however its API is complicated, every time I edited I had to compile to be able to use in my project. I hope I...
asked by 16.12.2015 / 22:27
0
answers

Backpropagation - Chapter of the Deltas [closed]

Well, I'm wondering how to calculate the error for the middle tier. I am using this pdf link . On page 5 it starts to calculate the error of the deltas of the intermediate layer, I am in doubt where these values marked in red in this link >...
asked by 27.11.2015 / 00:28
1
answer

Pass array of structs as argument

Having the struct struct bloco { bloco () : real(), marcado('.'){} char real; char marcado; }; When I try void tabuleiro (int lado, int mina){ ... bloco tab[lado][lado]; ... for (i=0, j=0; lado>i; i++){...
asked by 03.11.2015 / 00:05
0
answers

OpenCV Issues - Eyes Cascade and Face Cascade [closed]

Hello! All right? I am doing a program in C ++ with OpenCV and when running the error appears below This is the error that is occurring without try-catch Thisistheerrorthatisoccurringwithtry-catch intdetectEye(Mat&im,Mat&tpl,Rect&...
asked by 10.09.2015 / 18:44