Questions tagged as 'c++'

2
answers

because it marks me error in int main saying no matching function FrequenciesCardiac?

//Frecuencia Cardiaca #include <iostream> #include <stdlib.h> #include <iomanip> using namespace std; class FrecuenciasCardiacas { private: //Atributos// string nombrePersona; public: //Metodos// FrecuenciasCardiacas(...
asked by 14.10.2018 / 00:47
2
answers

Get a string of an object and assign it to a char

In my school activity they asked me to use dimension fields for an activity, what happens is that I keep a "1" in the object and when I want to recover it and assign it to the object it is not possible for me. He tells me it's not constant. ch...
asked by 29.08.2018 / 01:25
1
answer

What is stdcall and what is it used for?

I have been looking for information on the official microsoft website and I understand that it is used for function calls and to clean the stack of the stack if I am not mistaken but what is the benefit of this?     
asked by 03.09.2018 / 17:55
2
answers

The line of the printing code does not print well

I made this code when I asked for the data, but afterwards when I want to show the data I asked for the printout goes wrong, could you please tell me what I have to do to make the printout please. I leave an image so that they see the final impr...
asked by 03.09.2018 / 02:54
1
answer

pointer not initialized when calling the constructor

I'm learning c ++ concretely the 2011 standard but I can use any standard from this, my problem is that when I call car () inside the second constructor it returns the data pointer without initializing. How can I fix it and why does this happen...
asked by 05.11.2018 / 22:46
1
answer

Doubt with lists

I have a question about why this error occurs in the code described below: #include <iostream> #include <list> using namespace std; class List { list<int> m_list; list<int>::iterator it; public: void load...
asked by 22.11.2018 / 01:07
2
answers

Compile from Compiled

I have an application that uses the command line below to pass the arguments to the compiler and thus generate an .exe (in the case of windows) already compiled. I want to publish the application, but each person may have the compiler in a di...
asked by 11.07.2018 / 09:45
3
answers

evaluate multiple variables in a if [closed] statement

I've been developing a program to find passwords in a game called keep talking and nobody explodes, in which one of the challenges is to find the correct 5-letter password from a list of passwords. To solve it you are given 6 possible letters fo...
asked by 27.07.2018 / 22:57
1
answer

How to make a pointer by reference in C

Well what I said in C ++ compiles this code for me without problems: void pasoPorReferencia(int *&referencia){ cout<<referencia<<endl; int *dir_cambio, m = 2; dir_cambio = &m; cout<<dir_...
asked by 16.09.2017 / 16:02
1
answer

Problems when storing strings of a class in an array

My program consists of a menu that has: Register. Unsubscribe. Modify. Show. Exit. And the Person class with its constructors and methods. The Person class is something like this: Class Persona{ private: char* dni; char* nomb...
asked by 03.05.2018 / 12:46