Questions tagged as 'c++11'

1
answer

How to check the status of a Gtk :: RadioMenuItem object?

I'm building a dynamic menu using gtkmm. The menu is built as follows: Gtk::RadioButtonGroup appRadioGroup; bool groupInitialized = false; Gtk::Menu *driverSubMenu = Gtk::manage(new Gtk::Menu); driverSubMenu->set_visible(true); Inicio Loo...
asked by 05.01.2018 / 22:56
1
answer

push_back in Vector 2D, issuing error "no matching function for call"

I'm a beginner in C ++ programming, so I apologize in advance. As this question is answered here , you can use std::vector , 2D ( grid) with push_back() directly ( variavel[indice].push_back(...) ) incrementing unidimensio...
asked by 01.08.2017 / 04:35
1
answer

How to mount an array with std :: array and std :: vector in C ++ 11?

How to mount an array with std :: array and std :: vector in C ++ 11? What is the difference between the two architectures? How to scan this array with C ++ 11?     
asked by 15.07.2017 / 03:59
1
answer

Problem in zeroing the score of a game

Well, I read Bjarne's book on programming and I'm learning programming there, I'm in chapter 5 that's about mistakes, at the end of the chapter there's a list of exercises for me to do, I came across an exercise in that I have to create a kind of...
asked by 17.01.2017 / 16:58
0
answers

Call function from c # from within a c ++ dll

Situation: I have a project in 3 layers: one for data, one for graphical interface in C # and another in C ++. The c ++ layer is made using the clr support (/ em> Common Language Runtime Support (/ clr)). But I use it as wrapp...
asked by 07.11.2016 / 20:12
1
answer

unget () and putback ()

I have looked for some definitions and so far I know that unget() must return the last character and putback() can return others that are not the last one. But my doubt would be in the run. I would like to know the practical use...
asked by 22.08.2016 / 21:48
1
answer

How to listen to events without opening a window?

I'm doing a simple personal console project that will do keyboard hooking , but I do not want it to open the SFML OpenGL window. Is there any way to listen to SFML events without opening a window?     
asked by 27.07.2014 / 01:59
1
answer

Program does not execute when filling vector with random numbers not repeated in C

I'm trying to get the random numbers to be generated and fill a vector in a separate function, but the program does not execute and hangs if I put a high, and not as high, number as 50 or 100. Below is my code , if anyone knows what's wrong help...
asked by 28.03.2017 / 12:50
1
answer

Doubt in the use of the to_string function

In an exercise I'm doing, it was proposed to read two numbers, one integer and one real, and count how many digits they have. The input and output should look like this: Entre com o numero inteiro: 2345 Entre com o numero real: 234.549 O...
asked by 01.07.2018 / 19:53