Questions tagged as 'c++'

1
answer

c ++ - How to pass parameters between windows in Qt? [closed]

Hello, I'm trying to pass a Mat parameter from one window to another, being activated by the click of a button. The program normally compiles and executes, but when clicking the button that activates the event, the program of a chrash in the exe...
asked by 28.08.2016 / 00:54
1
answer

Enable variable spacing Code :: Blocks

I love Code :: Blocks, but it has a problem, I wanted it to already spill the instructions as soon as I put the ';' same as Visual Studio. Ex: for(int i=0;i<n;i++)'' >> ''for(int i = 0; i < n; i++)     
asked by 31.07.2016 / 14:44
1
answer

Function int (* cmp) (void *, void *)

I know that it compares pointers and returns an integer that determines whether one is smaller than another, in the order sense. But when I use it in main() , it is giving some error. Can you help me?     
asked by 29.06.2016 / 16:04
1
answer

Doubt about using static

Code: Header: class Cliente { public: Cliente(std::string nome_c, int num_cartao_l, int livros_c); Cliente(); void calc_Taxa(); const int get_livros() const { return livros; } const std::string get_nome() const { retur...
asked by 14.07.2016 / 20:11
1
answer

string.find (), what if I want to create something similar? [closed]

Well, I'd like to know how these "things" I do not know, in the case of string.find (), string.copy (), string.erase (); All I can do is stringpick (string). Remembering that I just quoted examples, what I really wanted to know is what those thi...
asked by 08.07.2016 / 02:14
1
answer

C ++ - X-axis motion (animation) - OpenGL

I've been trying to do a simple animation on the x-axis, where I have a chair and I've drawn it by several cubes, and in all those cubes I want to move the x-variable of them so they can move in that direction. He is already moving what happe...
asked by 28.05.2016 / 20:08
1
answer

Searching for TreeNode properties using C ++

Good afternoon. I'm trying to work with TreeNode s, I'd like to do a search based on the MyText properties, but I'm not getting the expected result. What I wanted to appear to me was just the part that says Album1 (which is my te...
asked by 25.06.2016 / 21:05
3
answers

C pointers, error invoking the reallocation function

I have the C code written below, whenever I want to invoke the function of an error that says: - / home / samuel-o-face / Documents / Data Structures and Algorithm / Class 13.04.16 AllocatingMemory / main.c | 80 | error: conflicting types for 'a...
asked by 17.04.2016 / 08:12
1
answer

How to declare a global mode queue?

I want a queue to be declared globally. I declare the queue as follows in my .h file: extern std::queue<SotpPacket*> reg; I want to access the queue in my .cpp file, but I'm not getting it.     
asked by 23.06.2016 / 04:50
1
answer

Regex with STD :: REGEX in C ++

I'm developing a C ++ system that needs to get some information from a String using regular expression, I'm using a regular expression that I've used in PHP perfectly, but in C ++ it returns blank. const std::string s = "{{ teste }}"; std::str...
asked by 14.04.2016 / 00:32