Questions tagged as 'c++11'

1
answer

Link library boost with cmake?

I'm trying to use c ++ boost library. Reading a tutorial on their website, I came across this and do not know how to do it. It is said that I have to include #include <boost/test/unit_test.hpp> and make a link with this lib: libunit...
asked by 19.11.2017 / 18:36
0
answers

Doubts related to an anti-cheat system [closed]

I could not find a better way to describe the title of the topic, if it is not good enough, I ask that moderation edit it for me. I have some questions regarding an effective anti-cheat gaming system. Yes, I know the best anti cheat comes dir...
asked by 08.09.2017 / 02:34
0
answers

Deleting repeated values from a vector

Hello, people briefly my problem is to delete repeated values of a vector, here is my code and just below a brief explanation. ===================================================== ========================== #include <iostream> #inclu...
asked by 05.03.2017 / 16:55
1
answer

Data Race or Deadlock? [closed]

I'm developing a project and the code is too big. To try to decrease the time spent in a calculation I decided to call this function in parallel. This worked for some test cases, but for another case the program always hangs, and in others di...
asked by 25.08.2014 / 16:11
1
answer

Code does not compile in C ++ 11

I have a common code, more specifically the following: #include <iostream> #include <SFML/System.hpp> #include <SFML/Window/Keyboard.hpp> namespace thread { void check_key(sf::Keyboard::Key key) { while(true)...
asked by 08.11.2014 / 02:46
2
answers

Problems with extensive algorithm [closed]

I do not know what to do, I think I've made some mistake that I do not know. In my program the user must think of a number, and the computer should try to guess what number the user thought. The computer may ask the user for a few times wheth...
asked by 14.01.2017 / 22:11
1
answer

"No match for operator" error in C ++

I made this code but I have not the slightest idea why it is giving this error: "No match for 'operator < In the part where I display the user's response ... (Remember that PersonName is a class and Date is also ...) class Filme { privat...
asked by 17.03.2018 / 02:15
1
answer

Best way to distribute a program that uses a shared library

I wrote a program that uses a library called curlpp . The program is very simple and all it does is make an HTTP request that returns a JSON (use curlpp to accomplish this request), parse this JSON (use a jsoncons for this) and print on the s...
asked by 14.07.2015 / 02:22
2
answers

How to avoid error "warning: ISO C ++ forbids variable length array 'fileName' [-Wvla]" in C ++ 11

I have the following piece of code that aims to create a buffer for the file name that will be created based on some information provided in the instantiation of the class: char fileName[size]; memset(fileName,'\n',size); sprintf(fileName, "%s...
asked by 11.10.2016 / 10:09
1
answer

Sort from lowest to highest in priority_queue by breaking second element, is it possible?

I am studying priority_queue and a question has arisen, if I want to insert a pair of elements in the priority queue, how do I make the queue show the element with the lowest number and if it has two numbers, does it break the second iden...
asked by 16.12.2018 / 15:00