Questions tagged as 'c++'

0
answers

How to generate a SHA-3 hash with Crypto ++, using a string as input and output?

Crypto ++ is a non-standard open source C ++ class library of cryptographic schemes. With it it is possible to use the hash function sha-3, however I have no idea how to use this library, even though it has documentation, I still find it confusi...
asked by 19.05.2018 / 19:32
0
answers

"A reference to a non-static member must be relative to the specific object" when calling method of the c ++ class itself

I have a class where, within a non-static method, I want to make a call to another non-static call. However, in doing so, Visual Studio already gives this alert: "A reference to a non-static member must be relative to the specific object." Th...
asked by 14.05.2018 / 16:21
0
answers

How to detect the end of reading a file in a loop with while in C ++

In my code, you have the struct: struct material { int idmaterial; double rho; double precokg; }; And the reading function of a data vector of type "material", from a file: std::vector<material> le_material(std::string s...
asked by 14.05.2018 / 19:36
1
answer

Use OpenCV in ubuntu c ++

I'm using Ubuntu with OpenCV to develop a computational view method, before I used OpenCV in windows and put the following configuration in qtCreator to recognize OpencCV. INCLUDEPATH += "C:\OpenCV-QT\install\include" LIBS += -L"C:\OpenCV-QT\i...
asked by 09.05.2018 / 15:20
0
answers

How to maintain the source in Qt5 when DPI increases

I'm having problems when I pass my UI to a user who has a different windows visual configuration than mine. If the user's display is at 125 or 150% my UI gets huge fonts in the labels while the other widgets become standard. I wanted to keep the...
asked by 11.05.2018 / 16:13
0
answers

K-nearest neighbors with KD-TREE in c ++

I need to implement an algorithm to find the k-neighbors closest to a certain point in the plane. Most of the material found on the internet is in English, I need the algorithm and the description of the operation I first implemented the class p...
asked by 07.05.2018 / 04:01
1
answer

Exception error in C ++ dynamic list

I'm creating a threaded list in C ++ and in condition if (j ->n == x) , in method wasVisited that should check if an element has already been inserted in the list, the following message appears when I compile:    Exception thr...
asked by 07.05.2018 / 00:07
1
answer

C ++ Character buffer adding non-existent characters

Well, I have an application for android that uses OpenGL ES 3.1, I did the whole procedure to compile the shaders, I decided to put them in a separate folder in assets, to retrieve the content I'm using
asked by 04.05.2018 / 14:28
1
answer

How can I use the fopen command?

When I try to use the fopen command Visual Studio returns an error saying that such a command is unsafe, and that I should use fopen_s, but in case I do not know which way to go with fopen_s.     
asked by 04.05.2018 / 02:31
0
answers

Passing Struct to a class by reference

Good afternoon, guys. I'm learning how to program in C ++ and I use the Qt framework for it. I get an error compiling as below:    ../ RWCXML / frmMainWindow.cpp: In member function 'void clsMainWindow :: fcMontarDadosXml ()':   ../RWCXML/...
asked by 09.05.2018 / 21:42