Questions tagged as 'c++'

1
answer

How to draw a line on an image in Qt? [closed]

We need to draw a line on an image in the Qt program     
asked by 10.06.2016 / 12:09
1
answer

Exercise number of occurrences always returns 0

I do not know how to do this exercise. It gives me that the number of occurrences is zero and as much as I look at the code I do not know why. This is my tried code: #include <iostream> using namespace std; const unsigned TAM1=1...
asked by 28.08.2017 / 10:53
1
answer

help: | 22 | error: invalid conversion from 'int (*) (const char *)' to 'int' [-fpermissive] | [closed]

int SafeCapture (const char errorChar[50]); int main(){ int dimention, dimLimChar; char str[50]; dimention = SafeCapture; cout << "-------------------------------------------------\n" << "This console applic...
asked by 28.09.2017 / 07:29
1
answer

Fill a 5 x 5 matrix using only one for C / C ++? [closed]

Does anyone know how to fill a 5 x 5 matrix only using a for?     
asked by 05.09.2018 / 05:41
1
answer

To pass a program to execute in commands to have a better visual aspect [closed]

I explain: Pass an algorithm that had in pseint to c ++ and the program fulfills its function (gives the results well). What I want now is to make a graphic environment (that looks like the programs already finished). That is to say tha...
asked by 27.02.2016 / 12:55
1
answer

Comparison of a char data in a Struct

How can I compare a data char from a Struct with 'H' or 'M' to know if the sex entered by keyboard is female or male ..?     
asked by 18.10.2018 / 03:08
1
answer

Problems when compiling in C ++

Hi, I'm just learning something from C ++ and I downloaded Jetbrain's CLION before installing the mingw following a video, the reason is that I was following the course and trying to compile or execute it throws me an error that I do not know ve...
asked by 17.12.2017 / 21:48
1
answer

Can you redefine an object of a class?

I have a Parent class that receives two mandatory parameters: the number of rows and columns. And I want to reuse an object and change the number of rows and columns, something like this: for(i=1; i<=10; i++){ Matriz M(i, i); //Hacer...
asked by 29.09.2017 / 22:08
1
answer

The use of ctype in c ++

#include<iostream> #include<ctype> using namespace std; int main() { double cuota,dscto, importe=0; char colegio, categoria; int sw=0; cout<<"Ingresar colegio de procedencia (N)acional,(P)articular:"; cin>>colegio; cout<...
asked by 27.08.2018 / 20:45
1
answer

POLIMORFISM pointers [closed]

I need the program to use polymorphism in the int main, this accommodating it but it makes an error and says "no matching function for call to FrecuenciaCardiacas" //Frecuencia Cardiaca #include <iostream> #include <stdlib.h> #incl...
asked by 11.11.2018 / 07:23