Questions tagged as 'c++'

1
answer

In the overload of, it says that there is an initializer error before &

#include <iostream> #include <cstdlib> using namespace std; class vector { private: int *pv, tam; public: vector (int *a, int tam){ pv= new int [tam]; for (int i=0; i<tam; i++){ pv[i]=a[i];...
asked by 11.08.2018 / 21:17
1
answer

Multi Task in Arduino [closed]

How can I do multiple tasks in arduino without using the function delay() and that each task is executed during a certain period and the tasks can run in parallel. void setup() { //TODO: ... } void loop() { task1(); delay (...
asked by 12.08.2018 / 22:08
1
answer

Segmentation fault when printing an array in C ++

I'm having problems printing an array in C ++. If I do what I indicate in the code below, you can access the data of each object in the array, therefore print: void testGetVehiculos(){ string ci = "c11"; int cantVehiculos=2; int p...
asked by 25.03.2018 / 14:49
1
answer

C ++ compiler for windows 10

I am looking for a compiler that supports the clrscr instructions, I have read that the error seems to be in the conio.h library. I have tried the mingw but it gives me the following error:    C: \ tesisv3> gcc sumar2....
asked by 14.06.2018 / 21:07
1
answer

Change color to QPainterPath overlapping

I have a QPainterPath of a point path, which is the path of a machine. I draw that path with a QPainterPathStroke and up there all right. The problem is that this path could pass over itself, that is, overlap or maybe just touch it and in that c...
asked by 14.05.2018 / 02:59
1
answer

Template error: invalid use of incomplete type

I found this on the Internet: #include <utility> #include <type_traits> namespace details { template< typename F, typename Tuple, bool Done, int Total, int... N > struct call_impl { static void call( F f, Tuple &&...
asked by 28.02.2018 / 14:56
1
answer

Separate characters from a char to enclose each one in different variables

You see, I'm using Borland C ++ ver 5.02 (I know it's an old compiler but I'd still like to know if there's a way to end my delirium) I need my program to read the char characters and separate them into different variables afterwards of a comma,...
asked by 18.03.2018 / 06:02
1
answer

Arduino C ++ Calculator

Hello, I have made a calculator with an LCD and a keyboard and I have almost ready it but when adding any number it gives me 0, could you tell me what I have done wrong? Thank you. The part of the sua is complete but I do not add it to it. #in...
asked by 07.01.2018 / 10:27
1
answer

error multiple definitions CPP

I have a global object defined in an "object.h" file of the form: #ifndef objetoo__h #define objetoo__h typedef struct objeto { int a; } objeto; objeto objetin; #endif Then I define a class in "class.h" and its implementation in "class.cp...
asked by 03.12.2017 / 17:53
1
answer

Doubt pop procedure stacks c ++

this code shows in reverse order the contents of the list linked from node n with the help of a stack. One question, if instead of showing the content of the list in reverse order, I want to show it in normal order, how should I handle the stack...
asked by 25.07.2017 / 14:30