Questions tagged as 'c++'

1
answer

Can you capture type events when I press a key in C ++? [CodeBlocks]

Good morning, I'm doing an autoclick bot for personal use and I would like to add the function to pause the clicks when pressing a specific key but I do not know if this is possible in C ++ ... well, if someone You can help me thank you. obs Sou...
asked by 30.01.2017 / 12:37
1
answer

Comparison with ifs always entering the first

I'm trying to make comparison using if, but it always goes in the first if: if((vetor[0] << vetor[1]) && (vetor [0] << vetor [2]) && (vetor [0] << vetor [3])){ cout << "\n" << vetor [0] <&l...
asked by 12.11.2016 / 18:00
1
answer

Difference between void and void * [duplicate]

What is the difference between void * and void as a return type of a function ? Example 1: void *func_nome(int param){ ... } Example 2: void func_nome(int param){ ... }     
asked by 13.10.2016 / 16:41
1
answer

Function rand () does not return random numbers. C ++

I have a function that needs to generate, in a specific part, a random number to do a certain task. But whenever the program enters this function, the number generated does not change, always being zero. Here is the code: do{ // Garante que se...
asked by 17.10.2016 / 20:09
1
answer

LNK2001 Error in C ++ Project Build

I'm trying to give Build a project in Visual Studio and this error is appearing: Severity Code Description Project File Line Suppression State Error LNK2001 unresolved external symbol "class CPSock ListenSocket" (?ListenSocket@@3...
asked by 05.09.2016 / 21:13
1
answer

Segmentation fault in client / server implementation

Hello, I'm implementing Game 21 (BlackJack) in C ++ in a Linux environment, in the course of execution it presents the error Segmentation fault, the problem is that I can not identify the generator of the error. The same one appears after the fi...
asked by 28.07.2016 / 02:29
3
answers

Display the vector values in c ++

I can not list (display) products registered in my Vector. Anyone know how to steer me, I'm learning c ++. #include<iostream> using namespace std; int main() { int op, i=0; string produto[10]; double venda[10], custo[10];...
asked by 01.07.2016 / 07:05
2
answers

Proportions of an image resized with OpenCV?

I have a project where I need to identify objects in an image, I am currently using the OpenCV library in C ++. I used the warpPerspective() function of OpenCV on a 605x141 size image to resize its perspective to a 674x35 size image. When...
asked by 10.09.2016 / 18:41
1
answer

Create an enumerator in QML by C ++

I'm trying to use an enumerator that was created in C ++ and I'm using the QT 5.6 website itself to guide me, Data Type Conversion Between QML and C ++ . However when compiling I get the following compiler exception: error: undefined refere...
asked by 03.06.2016 / 16:27
1
answer

Problems with uint64_t in C ++

I'm having trouble with very large numbers. When I put the entrance 64 my program does not display the correct answer, remembering that all smaller numbers are with normal output. Program exit: 0 kg Expected output: 153722867...
asked by 30.05.2016 / 02:14