Questions tagged as 'c++'

0
answers

Arrange chained list

Hello, I'm trying to organize a simple linked list but I'm missing the reference of the nodes, if you can give me a light ... For example, if the previous node has the "- > date" attribute greater than the later, I should change them from pla...
asked by 23.10.2018 / 20:07
1
answer

Is it possible to send data in the body and in the url using the PUT method and libcurl?

I'm trying to send the data both in the URL and in the body using the PUT the idea was to make it work just like the POST method, but being the PUT method. This is because I see many requests where the url would be / book / and in the body wo...
asked by 25.10.2018 / 23:49
0
answers

How do I make a circle jump up and down when I load in space?

I need to make a version of the game "Color Switch" in Visual Studio C ++ with Glut but I do not know how to make a geometric figure move. Any help is welcome. Below is the code for my circle #include <math.h> #include <GL/glu...
asked by 01.11.2018 / 20:27
1
answer

Accessing methods of a class in a vector of pointers

Right, I have a Package class with a public method double calculate_cost (). I need to create a std::map<string, std::vector<Package*>> in which I can iterate through the vector and save the return of the calculate_cost () m...
asked by 05.10.2018 / 23:37
0
answers

Replication of libraries [duplicate]

In the C / C ++ language, when I include the same library in multiple .h files for the same program, is the code repeated or does the compiler avoid such reinclusion?     
asked by 09.10.2018 / 23:49
0
answers

Getline reading, not le the string and tb when accessing a vector that does not exist or size insuffiente

Well, this is a classification of players from a two-by-two match, where you sort the match you stopped at. #include<iostream> using namespace std; int main() { int N,Ri,Ei,partidas,tamanho,contador,posicao1,i,achar,total1,total2;...
asked by 10.10.2018 / 02:26
0
answers

The memory identifier is not defined

The script would basically be that. #include pragma comment (lib, "user32.lib") WINAPI DWORD th (LPVOID param) {     while (TRUE) { if (GetAsyncKeyState(VK_F1) & 1) { Memory mem = new Memory(); DWORD PI...
asked by 16.10.2018 / 12:28
2
answers

How does std :: move work?

I would like to understand the operation of std::move . I noticed that with the C ++ 11 specification this new function arises, and now we have a new operator (& &). What is the semantics and use of this new function and this...
asked by 03.02.2015 / 16:04
0
answers

Check string in a file and create email without "Junior, grandson and child"

I need to check within the list below: NAME, REGISTRATION FELIPE OLIVEIRA DE JESUS, 71 HENRIQUE HIROMI SHIMADA, 67 ISAAC DE OLIVEIRA PIRES, 52 JONES SABINO SILVA, 4 LUCAS PEREIRA CORREA DE SOUZA, 42 MARCOS HENRIQUE RIOS PEREIRA, 58 MARCOS PAU...
asked by 07.10.2018 / 23:55
0
answers

Order guarantee for threads

Good evening. I'm running a program that handles 10 threads , but how do I ensure order? type, run from 0 to 9 , since it is now running randomly and I am not able to keep the order. I'll leave the code here: #include <st...
asked by 01.10.2018 / 04:52