Questions tagged as 'c++'

3
answers

What is a static function for?

What is a function with keyword static ? I know that declaring a local variable as static within a function will work as if it were a global variable, and a static function how does it work? And when should you use a sta...
asked by 01.12.2017 / 18:18
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
2
answers

C Operator Precedence Table

In C why does y = (y=2 , y+3) return 5 if + has priority over = and , ?     
asked by 22.03.2015 / 18:46
1
answer

How to get information from a .CPL?

I wanted to make a program that would display all control panel items. For this I need to query some registry keys, but there are programs that still use cpl files to store the information. I've heard that cpl are DLL's written in C ++ but I...
asked by 30.01.2015 / 21:21
1
answer

Variable within pointer of a class

I have several header files with GUI management functions that I did to create windows, similar to those libraries like GTK, QT and others, and I am transforming them into a library, but I have a problem that is going to be a bit complicated to...
asked by 06.12.2014 / 18:56
1
answer

What does "\" mean in the C ++ header?

I was looking at the MFC header and I do not know what the "\" character means in this context: #define BEGIN_MESSAGE_MAP(theClass, baseClass) \ PTM_WARNING_DISABLE \     
asked by 28.09.2015 / 23:21
3
answers

How does the Include directive work?

Does "include" of C ++ do exactly what? I know it "imports" a header / library. But if I have a Header.h with: #include <string> using namespace std; string a() { return "PTSO"; } and in Main.cpp: #include <string> #include "H...
asked by 24.12.2014 / 11:31
1
answer

QVideoWidget does not display anything

I'm trying to use the QMediaPlayer and QVideoWidget to display a video on a system I'm producing. Except that these class rays do not work as expected. QVideoWidget simply does not appear, does not display the video, do...
asked by 23.06.2016 / 01:06
1
answer

How does "free ()" know how much memory it has to release?

When we use malloc() we say how many bytes we need. But in free() we do not say. How does he know how much needs to be released?     
asked by 18.01.2017 / 11:48
1
answer

How does the switch work under the rags?

Viewing these comments about using switch is in doubt as to how it works even and why it is different from if when only buying by equality of a single variable against a sequence of values. p> How is this compiled? Should it...
asked by 11.01.2017 / 12:20