Questions tagged as 'c++'

1
answer

Reading and saving information (C ++)

Good afternoon. I'm developing a project whose goal is to manage the drivers of a mobility company. Here is what I've done ... save records of a new driver in the file "driver.txt". #include <fstream> #include <iostream>...
asked by 16.04.2017 / 01:56
0
answers

Error when using a c ++ dll in a C #

I created a dll with a code in C ++, when I went to use it gave an error. function within the dll that I tried to use extern "C" __declspec(dllexport) void ClickLeftMouse(int x, int y){ POINT cursorPos; cursorPos.x = x; cursorPos.y = y; HWN...
asked by 25.04.2017 / 20:01
0
answers

setlocale does not work in RAD Studio C ++ Builder in console apllication

#pragma hdrstop #pragma argsused #include <stdio.h> #include <locale.h> #ifdef _WIN32 #include <tchar.h> #else typedef char _TCHAR; #define _tmain main #endif int _tmain(int argc, _TCHAR* argv[]) { setlocale(LC_ALL,...
asked by 08.04.2017 / 23:31
1
answer

Problem executing methods of a generic class

I'm developing a generic DAO class in Qt, but when I compile I have the following error, when I call any method from my DAO object: Debug\debug\main.o:-1: In function Z5qMainiPPc': undefined reference to bool DAO::add<Product&...
asked by 04.04.2017 / 20:03
1
answer

Setting up Visual Studio to use GTK +

I've been browsing and the only place I found something similar was stackoverflow in English, where the configuration for using GTK + in Visual Studio 2010 is described. For the little experience I have, I thought I could set it up for use in...
asked by 22.03.2017 / 18:31
1
answer

Read from a txt file using fscanf using vector

I have the following while(!feof(f)){ (*ptr).push_back(carro()); fscanf (f, "%d", (*ptr)[add].id); fscanf (f, "%s", (*ptr)[add].marca); add++; } Where * ptr is & vector, a vector of a struct car, I have alrea...
asked by 16.03.2017 / 21:24
1
answer

Problems opening c ++ software on another PC

I'm developing software in c ++ using Visual Studio 2015, and I'm using two external libraries OPENCV and FlyCapture2. I developed the software and it runs normally on my computer, but at the time of moving to another computer it says it is miss...
asked by 12.04.2017 / 16:36
3
answers

How do I capture the numbers for an array on a single line?

I have to write a C ++ code in a question where the user first inserts a number that determines the size of an array, and then inserts in a single line, separated by spaces, the numbers of that array so that stored. How do I capture these number...
asked by 15.03.2017 / 05:42
1
answer

Attribute of a struct to receive multiple structs

Can an attribute of a struct receive multiple structs? For example, I need the LPWFSPINFDK lppFDKs; attribute that is part of the _wfs_pin_func_key_detail struct to receive multiple _wfs_pin_fdk structs. I'm trying this way...
asked by 08.03.2017 / 00:16
0
answers

MPI running along with Gurobi

I'm trying to make a simple c ++ code which aims to run 1 million PL (linear programming) with the gurobi optimizer using MPI parallel processing. The problem is that when using MPI and Gurobi (student version) together, for some reason the p...
asked by 27.02.2017 / 15:36