Questions tagged as 'c++'

0
answers

When printing string, nonsense characters are displayed [duplicate]

I need to do a program that calculates the average salary of a company, asking the user for the number of employees, the name and salary of each employee and returning the average, the name of the employee with the highest salary and the name...
asked by 09.09.2018 / 22:06
1
answer

Gmock compilation error

Good evening, I'm practicing test in c ++ used the gtest / gmock google test library. Everything works fine with gtest, but I can not compile it at all when I try to use gmock. To make sure it's not my problem code, I've decided to copy a sample...
asked by 04.09.2018 / 02:20
0
answers

Inserting an element + priority on a linked list node

I am creating a method to insert into a linked list an ordered element according to the priority but it does not insert correctly, the first element it inserts normally but the rest it inserts at the end of the list and duplicates the same boo...
asked by 15.09.2018 / 23:56
0
answers

Qt - Perform an action when a dialog is loaded

I have an application that is used to manage a barracks in my city, on the sniper register screen I would like to check first if there is a group registered in the database, if I do not close the dialog, I tried to do this way: void CadastrarA...
asked by 07.09.2018 / 14:42
1
answer

Numeric Counter

I must create a program that commands a hardware in which I have connected in 3 different ports of the arduino a circuit containing 3 leds. The program should raise these LEDs in binary order. I have two functions ready, the first function...
asked by 24.08.2018 / 00:30
0
answers

Memory garbage when pointing a pointer

In an attempt to implement an adjacent array graph, I created the createVertice function in which a new "array" would be created and the contents of the graph would be copied to it, adding the new positions. However, when calling this function a...
asked by 24.08.2018 / 20:44
1
answer

File Function in C ++

Hello, I have a problem using the file function, I need to make a program that registers the place and the name of the person on a bus, but the problem is that every time I close the program and open the name and place again the person chose is...
asked by 17.08.2018 / 22:48
0
answers

Graph / trees- Number of children - C ++

I have a problem in the code below, I wonder if all the vertices of each level have the same number of children, but something is going wrong. #include <iostream> #include <vector> using namespace std; vector<int> lista[100...
asked by 23.08.2018 / 20:17
0
answers

Create a TAD to represent a given

I have the following task: Create a TAD (struct) to represent a Circumference and then check which of the read circles have intersections between them. I need to store four basic data, id, x, y, and radius . I think of using std::<v...
asked by 28.08.2018 / 15:20
0
answers

Help with string and libcurl c ++

Good evening. This is the first time I post something here, I would like help with a program I'm doing to streamline some processes at work, I'm not a programmer, I'm just learning I've searched in several places but I did not find an answer,...
asked by 30.08.2018 / 00:44