Questions tagged as 'c++'

1
answer

Function NS_LOG - NS3 (Network Simulator): What does the "operator" mean in practice? [duplicate]

I'm working with the ns3 program, and trying to understand the code I have at hand, I came across this line, and would like to know what this sequence of "< means (I am not referring to the variables, but to the command "< <") I re...
asked by 12.12.2017 / 20:39
0
answers

ShellSort C ++ Algorithm

Good afternoon everyone! Can someone help me by explaining this code to me in c ++: #include < stdlib.h> #include < stdio.h> #include < ctime> void shellSort(int numbers[], int array_size); int main(int argc, char const* a...
asked by 02.12.2017 / 20:08
1
answer

warning: libssl.so.1.0.2, needed by /usr/lib/gcc/x86_64-linux-gnu/6/../../../x86_64-linux-gnu/libcurl.so, may conflict with libssl.so.1.1

I'm trying to copy a program that needs some libraries LIBS = -g -lmysqlcppconn -lpthread -lcurl -lboost_serialization -lreadline -lz -luWS -lssl The problem is that -lcurl and some programs need libssl.so.1.0.2 and -lssl...
asked by 25.11.2017 / 14:08
0
answers

Call a method of a class from a function within the class itself? C ++

I created the "checkCase4" function in my Tree class and inside it I call 2 methods of the class itself (rotate_left and rotate_right). Function: void checkCase4(Node *child, Node *grand) { if (child == child->parent->right &&...
asked by 18.11.2017 / 18:39
0
answers

Get values from an audio file

I'm trying to use a c ++ library to detect frequencies of a sound. To use it I need to pass a double type vector with the audio samples. I managed to get a vector but for this I had to use android so he pick up audio from the microphone read in...
asked by 22.10.2017 / 07:39
1
answer

Logical Error in Sorted List (C ++)

In the data structure discipline, the teacher gave us a cpp code with an ordered list and asked us to implement the methods of binary search, sequential search and insertion, but I can not identify why the program executes but the output does not...
asked by 26.10.2017 / 19:26
1
answer

Segmentation float when starting the function for the second time

I created a program in c ++ to manipulate arrays, and split the source code into 2 files, one with functions and the other with implementation, all functions work correctly, however when starting any function for the second time, regardless of w...
asked by 18.10.2017 / 19:45
0
answers

How to control txt file reading

I have the following entry in a file .txt : var a; var b; var c; a = (10+2)/2; b = a*2; c = a*b; print a; print b; print c; Where the getToken () function will return me the current token, containing the type and its value. For exampl...
asked by 02.10.2017 / 19:06
1
answer

How to pass a vector of the vector class as parameter of a function?

The contents of my vector are the data I want to put in the array: int main() { vector<int> dados; int valores[4]; string val; ifstream arq ("matriz.txt"); if(arq.is_open()) { while(! arq.eof()) {...
asked by 30.09.2017 / 05:31
2
answers

error: use of deleted function 'Fight: Fight ()'

Good afternoon, I'm trying several problems compiling the code below in code :: blocks with g ++ and I'd like to get help, thanks in advance. Main.cpp content: #include "Lutador.cpp" #include <iostream> #include <string> int ma...
asked by 23.09.2017 / 22:08