Questions tagged as 'c++'

1
answer

Browse array 1 dimension, intermediate code (3 addresses) C ++

Good evening, I am programming a soup of letters in c ++ with intermediate code or three addresses and then pass it to the GUI TASM assembly. What the program should do is print a one-dimensional array with the letters, and move around the array...
asked by 21.11.2017 / 07:54
1
answer

how to read a comma delimited file in C ++

My question is this, I have an integer text file which I need to get every complete number that is separated by commas. I know that with spaces the compiler knows that they are different things, but how can I do it if they are commas?     
asked by 05.11.2017 / 03:38
1
answer

Doubt about Polymorphism and fixes in C ++

I have a question about the use of arrays with polymorphism, the subject is like this: I have a class Article that inherit two classes Book and CD. class Articulo { protected: string nom; public: Articulo(); virtual voi...
asked by 31.10.2017 / 22:56
1
answer

Multiplication tables in horizontal c ++

I need help with this problem: Design the following class to show several tables at a time horizontally class TablasMultiplicar{ int TablaIni, TablaFin; public: void PedirNoTablas(); /* Método para solicitar por tecla...
asked by 03.11.2017 / 18:23
1
answer

How to capture the image of an ip camera with opencv c ++?

I have a system where I use opencv and c ++ for vehicle counting. Capturing the image from a video for example VideoCapture cap(video.pm4); works fine, but when you want to capture the image from an ip camera VideoCapture cap("http://ip_a...
asked by 02.11.2017 / 02:34
1
answer

Failed to return 0

The program consists only of entering a name, and if it is in the file, display a menu. Otherwise the menu is not displayed and the program is terminated by the function fin () that returns in 0. However, even if the name is not found in the...
asked by 14.11.2017 / 18:14
1
answer

Use type declared later in a structure

I have these structures typedef struct stDC { qint8 numberA; qint16 numberB; qint32 numberC; qint64 numberD; qint32 *intList; qint8 *byteList; stDC *list; int listlen; QString string; int mode; float...
asked by 23.12.2017 / 02:49
4
answers

Avoid the use of if and hardcoded string

There is some way to avoid the use of if and the harcoded string in the redirect function, perhaps using templates (metaprogramming). The idea is to receive a string and call a function. #include <string> #include <iostream> void...
asked by 09.09.2017 / 11:30
1
answer

How do I delete values from an array in c ++?

my doubt is at the moment of eliminating values from an array and going through it does not erase, here is part of my code (I find the position to be eliminated but it does not do it) #include<iostream> #include<stdlib.h> #include&...
asked by 27.09.2017 / 06:30
2
answers

How to configure c ++ Debugger in visual studio code?

My question is simple, but I've been trying to solve it for some time and I could not, I want to be able to use the debugger that comes with vsCode, but it does not work for me, when I say "It does not work for me", I mean: When I enter the debu...
asked by 14.08.2017 / 23:11