Questions tagged as 'c++'

1
answer

Makefile wxWidgets

I'm trying to use wxWidgets to do a college project and I ended up trying to use the Makefile out of curiosity, below the makefile I'm using as an example for the project. Makefile CPP_FILES := $(wildcard src/*.cpp) OBJ_FILES := $(addprefix...
asked by 02.12.2015 / 04:17
1
answer

How do I define the push_back function for a c ++ structure?

How can I use the push_back function in a structure? I have the Arc structure: struct Arco { int i, j; Arco () {}; Arco (const Arco& obj): i(obj.i), j(obj.j) {}; Arco(int _i, int _j) : i(_i), j(_j) {} };...
asked by 23.08.2015 / 00:09
1
answer

Signal and SLOT C ++ with QT [duplicate]

I'm developing software in c ++ that captures images from WebCam, before I used OpenCv but received an error from Undefined symbols for architecture x86_64 Until I opened a topic here and no one knew how to answer the error. Give up using O...
asked by 28.06.2015 / 17:21
1
answer

Executable created by CodeBlocks opens and closes alone

I have a problem with my program in CodeBlocks. When I compile and run the program, CodeBlocks creates an executable in the Debug folder that is inside the bin folder, located in the same folder where the project is. When trying to open the .exe...
asked by 28.07.2015 / 06:37
1
answer

Storing student information [closed]

I need to develop a program on WINDOWS platform where student information will be stored: age , < strong , shuffle and name tags. The program should also contain a name search. I would like suggestions.     
asked by 15.05.2015 / 01:34
1
answer

Recovering the HD Serial from C ++ without using WMI

I need to get the MAC and Serial HD volume (in the cmd is "vol C:"), I got the MAC by the code: private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { UCHAR MACData[6]; char cWork[20]; UUID uuid;...
asked by 21.07.2015 / 19:54
1
answer

Compile error with structs [closed]

The following error is occurring in compiling the code below:    .. \ src \ struct.cpp: 19: 19: error: elements of array 'main () :: gets v [3]' have incomplete type   .. \ src \ struct.cpp: 19: 19: error: storage size of 'v' is not known...
asked by 22.05.2015 / 02:09
1
answer

Using double type in c ++ can be more "fast" in terms of runtime than using floats?

I have a program developed in c ++ in visual studio, which processes a huge amount of data! This program can either use float or double data, and this specification is done as follows: typedef float/double real; ie in the previous statement...
asked by 02.06.2015 / 18:56
1
answer

Definition and implementation in different places

Hello. I am having doubts when implementing a header in folders with different paths. I'm putting my header in a folder named "include" and the implementations in a folder named "src" . To solve this problem, I'm doing the following...
asked by 05.07.2015 / 08:20
1
answer

Stopwatch with wrong timing

I have a QtSDK timer, but when it starts time goes absurdly faster than normal . Here is the code below: QTime time; QTimer timer; void PlanejamentoWidget::timeUpdate(){ QTime t = ui.timeEdit->time(); ui.timeEdit->setTime(t.add...
asked by 23.02.2015 / 16:46