Questions tagged as 'c++'

0
answers

Functions with dynamic_cast

I must carry out a program, which is a clinic which has a list of the Pregnant class, which is a base class from which pregnant women are derived. Pregnant women, pregnant women, pregnant women, mothers35 and pregnant women, high blood. I must i...
asked by 24.11.2018 / 02:02
2
answers

Random numbers srand

It consists in drawing two numbers at random, but surely you have to reinitialize the srand because it goes wrong and in another project that I have the two numbers are the same. #include<iostream> #include<cstdlib> #include<cti...
asked by 28.10.2017 / 13:06
0
answers

Sorting error heap sort descending

How I fix this code so that when I type in numbers I can order it in descending order specifically with the Heapsort method, since when I type numbers it does not. CODE: //ordenamiento por Heapsort descendente #include<iostream> #include...
asked by 28.11.2018 / 19:21
0
answers

Print list of names in C

The truth is I'm a bit lost on this from the pointers and I need help with a program I'm supposed to enter n for the number of names the list will have, enter the names one by one and at the end it should show me in the form of a list the...
asked by 14.11.2018 / 05:53
1
answer

Unresolved external symbol What have I done wrong?

I've been trying to solve a problem for a while, I've tried to solve it with different compilers and there's no way. The program is more complex but I have been able to summarize it in the following code: S.hpp #ifndef S_HPP #define S...
asked by 16.05.2017 / 22:48
0
answers

My bubble order does not work correctly, List doubly linked

As an activity I have to use a double linked list created by me, and likewise implement a bubble method to order the values. My Node is this: template<class T> class NodoD{ private: T dato; NodoD<T> *sig;...
asked by 14.09.2018 / 04:26
0
answers

Scope of the variables in OpenMP

As I understand when declaring a variable of private type in OpenMP, it does not initialize, it simply makes the memory reservation and when it leaves the parallel scope, it recovers its initial value. The doubt arises when implicitly said va...
asked by 16.09.2018 / 19:59
3
answers

Count and modify the elements of a queue

I have the following code to work with queues. How could the elements of the queue be counted and modified in the following code? #include<iostream> #include<conio.h> #include<stdlib.h> using namespace std; struct Nodo{ ch...
asked by 11.09.2018 / 03:51
2
answers

Sequential Securities Program

I must write a program that displays values sequentially according to the input value, use a variable to store the value entered. An example of what the program should do Input Data: Enter a value. 8 Output data: 8.1, 8.12, 8.123, 8.1234, 8...
asked by 13.09.2018 / 05:51
0
answers

How to read binary file with C ++

After a lot of work I managed to write and generate a binary file, but when I want to read it I get strange characters and not what it generates, the strange thing is that at the end of the function of writing the file, after closing, I open and...
asked by 15.08.2018 / 17:56