Questions tagged as 'c++'

1
answer

Return modified object

I have the following problem, according to the didactic example below: #include "b.h" #include "c.h" class A { public: int start(); private: B b; C c; i...
asked by 22.10.2016 / 23:43
2
answers

Store SMS message in variable

I'm having trouble saving an SMS message to a variable. The idea is to send an SMS with a command and later use a conditional operator to activate or deactivate a relay. But I can not save the SMS message. Whenever I try to save it, it assume...
asked by 22.08.2014 / 20:17
1
answer

C ++: Adding ".cpp" implementations in Visual Studio and GCC

In C ++, what you observe in a quick internet search is the guideline that only ".h" files should be included. A sample of this can be seen here and especially here . In Visual Studio, adding only ".h" with #include ... is not a pr...
asked by 05.10.2017 / 03:43
1
answer

Error "E2034 Can not convert 'TByteDynArray *' to 'TByteDynArray'"

I need to integrate with Horus System (Health) using C ++ Builder. I already imported the .cpp of the homologation web service made available for my project. I'm having problems with the methods used to send the data, where it expects a...
asked by 02.07.2015 / 14:34
1
answer

Nested pointers and references

I have a question in interpreting (in the form I read my code) in assignments in pointers in the C language. I did not understand the logic of the following assignments: "If i and j are integer variables and p and q...
asked by 06.09.2015 / 19:13
1
answer

Call C ++ from Lua

I would like to know if there is a way to do a moon extension with a C ++ library, that is, the moon script accessing functions in C ++. Ex: add.lua file -- add two numbers function add ( x, y ) CHAMAR AQUI uma função de uma bibliotec...
asked by 15.07.2015 / 21:00
1
answer

Understanding pointers [duplicate]

I'm trying to learn C ++ from the internet, I understood more or less what pointers are but I do not see a utility, I do not know anything about C ++. I just do not want to go over this subject, I did a test that I think should work, to see th...
asked by 06.07.2015 / 00:55
1
answer

Problems with scanf and printf in C ++

I have a program in which I need to store an array of a music class that generates a list of the songs and their characteristics. The problem is that at the time of the printing method it generates a confusion of the characters, or mixing or omi...
asked by 01.11.2017 / 20:02
1
answer

QVector for QImage

I have to transform a QVector 2d into a QImage to display the image in a label. The QVector in this case is an array of integers with value from 0 to 255 representing an image in PGM or PPM, this vector makes grayscale or RG...
asked by 03.04.2014 / 02:34
3
answers

Why can not (easily) hide private members?

Concealing implementation is one of the keys to good modern software engineering, and crucial in code reuse. Why then in c ++ it is not possible to hide the private data implementation? Since this member data can basically only be used by member...
asked by 10.06.2015 / 03:06