Questions tagged as 'c++'

1
answer

Regular expression help

Hello, I need a help with RegEx. I need to do a split of a string to store in a list, so I'm doing so. QString a = "strength 0.5"; QString b = "'kernels[1].params.sigma_albedo' 0.02"; QString c = "debugPixel '[336, 209]'"; QStringList myListA...
asked by 07.03.2017 / 02:31
1
answer

How to install C ++ compilers and libraries from previous versions in visual studio 2015?

How can I install old versions of compilers and c ++ libraries in visual studio 2015 without having to install the IDE together? (that is, only what is needed to compile, run, and debug applications). I would like to leave it like this:...
asked by 26.11.2016 / 00:29
2
answers

Convert Header C / C ++ to Delphi

The intention is to consume a biometrics dll link I thought the best way would be to convert the headers that they provide (not a good idea). There are 3 headers: VrBio.h VTypes.h VConsts.h So far I've been able to convert (I thi...
asked by 25.11.2016 / 19:39
1
answer

I can not make this program work. Always says numbers are divisible

#include <stdio.h> #include "funcao.h" int main () { int a, b; printf("Escreva os valores de a e b "); scanf("%d", &a); scanf("%d", &b); if (EDivisivel (a,b)) printf("sao divisiveis"); else...
asked by 27.11.2016 / 16:35
1
answer

Assembly and C ++ with Visual Studio 2015 and MASM x86 / 64

Good evening. I use Visual Studio 2015 and I usually program in assembly language via __asm , but I still have questions about how to use MASM to create code in assembly for x64. I need help getting started. How do I create assembly...
asked by 11.10.2016 / 07:31
1
answer

Difference between recv and read, send, and write

I'm transmitting and collecting data from a connection using Sockets , to send the data to the served, you can use the send and write commands, and to receive the data recv and read . Is there a difference in th...
asked by 22.11.2016 / 18:11
1
answer

Loop execution failed

// Example program #include <iostream> #include <string> #define ACCOUNT_MAX 3 using namespace std; class User { private: struct Accounts {string user, password, firstName;}; struct Accounts accs[ACCOUNT_MAX]; b...
asked by 13.09.2016 / 02:58
1
answer

Identify memory leak in c ++? [closed]

Hello, I recently had problems with the application I'm developing. The application seems to lose performance during a certain runtime. I checked my code but I only use a single object dynamically allocated in memory, and I'm calling its due des...
asked by 14.09.2016 / 21:21
2
answers

Problems with the switch

I'm experiencing problems with this code, when running it the default runs also being that at no time did I enter any data other than what is in the cases. // faz loop até usuário digitar a sequência de teclas de fim do arquivo while ((grade =...
asked by 15.10.2016 / 21:24
1
answer

Why is the complexity cost of a BFS O (n + m)?

I need to show that the cost to know if there exists a path between two vertices v and w is O (n²). For this I can do a BFS in a graph, but, the cost of a bfs is O (n + m), but I do not understand why it has this "m", and also do not know how to...
asked by 12.08.2016 / 22:35