Questions tagged as 'c++'

1
answer

What does Delete do in front of the constructor?

What does this *delete mean in front of the constructor? Grap& operator=(const Grab &g) = delete;     
asked by 08.11.2016 / 15:14
1
answer

How do I get version of my application?

I need a way to get the version of my application in C ++ Builder , to put in the Caption of a TLabel , which will be displayed next to a home screen system presentation.     
asked by 26.07.2016 / 17:30
1
answer

Sublime Text 3 - Autocomplete of headers in directory

After unsuccessful search for a sublime text 3 plugin, I've come to you for help. I need to recognize the libs installed on the system, so I'm looking for a plugin capable of delivering an autocompletion at the time of #include of the heade...
asked by 13.10.2016 / 21:35
1
answer

I need to register several products

I am creating a Product registration code, but I can only store a single product. How to improve the code? #include<iostream> using namespace std; void novoProduto(){ string nome="Patrick Oliveira de Souza"; float custo, venda;...
asked by 28.06.2016 / 05:21
1
answer

Headers Configuration

I'm trying to compile some code in "C" via GCC (Derbian - Kali Linux), and when compiling, I get error messages saying that files like linux/linkage.h and asm/linkage.h could not be found. When issuing the locate linkage.h command,...
asked by 12.05.2016 / 13:14
1
answer

Is it possible to determine the hardware address of the router?

I'm trying to get the hardware address of another device (actually from directly connected equipment such as a modem / router) on the same network, I was able to do this: foreach(QNetworkInterface netInterface, QNetworkInterface::allInterfaces...
asked by 22.10.2016 / 18:18
1
answer

Problem with manipulation of txt files in C ++

I'm developing a C ++ program that should read the keyboard data by storing them with hash , after reading it it should have the save option in its main menu. I can read the save files using hash and everything. The problem is when crea...
asked by 27.10.2016 / 13:25
1
answer

Optimization game Bulls and Cows

I made this code from a game called Bulls and Cows where it's a guessing game, but it's a bit different, I'll give you an example: The hidden numbers are 1 2 3 4. If you put 1 2 6 7, you have Two Bulls (right numbers in the right positions...
asked by 09.03.2016 / 00:26
2
answers

C ++ doubts do-while loop

Good people, I have the following doubt: Every time I run this program the do-while loop does not stop at the second loop scanf in the program and ends up running twice and displaying the error message. I'd like to know how to fix this bug....
asked by 15.01.2016 / 13:12
1
answer

Randomizing images as textures in 3D solids

Well, I have 30 solids and I have a different image for each of them. I created an array for the images, and if I choose to use the same image at all (as I left here in the code, use bandeira [0] ) it runs and everything is fine! I now...
asked by 15.06.2016 / 23:03