Questions tagged as 'c++'

1
answer

Qt5Widgets.dll DLL error when it is installed to another computer

I'm trying to export an application built in Qt 5.7.0 (compiled to 32-bit, though development takes place in a Windows 10, 64-bit environment) to another computer (this one with Windows 8.1, 32 bit). To do this, I have prepared the CMake scri...
asked by 02.08.2016 / 15:43
1
answer

What is the difference between using #include "stack.h" or using the declaration of this class?

Having these two classes, in two different .h files. um.h class um { //(...) }; two.h #include "um.h" //opcao 1 class um; //opcao 2 class dois{ public: void f1(um * p); }; What is the difference between these tw...
asked by 18.01.2017 / 02:56
1
answer

Standard libraries in C / C ++

What is the disadvantage of using non-standard libraries such as the getch() function and the conio.h library, what is the drawback of development using such libraries? Speaking more precisely in case of programming in C in microp...
asked by 12.08.2018 / 23:03
1
answer

Variable return type

I want to do functions with type variant input, like this: int count(vector<auto> base, auto val) { int sum= 0; for (auto it : base) { if (it == val) { sum++; } } return sum; }...
asked by 24.06.2017 / 21:19
1
answer

Does not compile, error: use of deleted function

I have a simple project in codeblocks (windows), I am using the SFML library, when trying to call a method that I created where I pass the window and any object, compile I get the following error:    error: use of deleted function 'sf ::...
asked by 20.03.2017 / 22:39
1
answer

Performance and security PHP x C ++ for web

Today I work in a company that manages some sites with too big traffic, which is causing some server overload problems and so on. These sites are mostly news portals and are running Wordpress, these sites the more they grow in data volume the mo...
asked by 08.05.2017 / 04:51
1
answer

How to create a class with attributes and methods in C ++?

In Java I know how to do it, but in C / C ++ it's little different then how to create a class with C ++ attributes and methods? I'm using CodeBlocks. When I create a class in C ++ it creates two files a .h and another .cpp...
asked by 13.03.2016 / 21:54
1
answer

Understanding the concept of export symbols in shared libraries

I'm reading about this concept of exporting elements out of a shared library (DLL or OS). I'm reading this existing publication on the GCC Wiki. The last example of the publication is this: // Generic helper definitions for shared libr...
asked by 20.03.2016 / 20:02
1
answer

Open files, passing variable as filename

I have the following situation, a file "tables.txt" where I have around 2000 lines with filenames which I want to pass line by line taking the name of the files and checking which ones exist and which do not. The problem occurs when after get...
asked by 27.07.2016 / 13:36
1
answer

How to read a variable in setText ()?

I need the text of a lineEdit to equal a string variable. I'm using this code: void MainWindow::on_pushButton_clicked(){ string texto; texto= "mensagem"; ui->lineEdit->setText(texto); }     
asked by 28.11.2015 / 23:46