Questions tagged as 'c++'

2
answers

Result in repeated C ++ screen [closed]

When I search for a student, I get the result twice or return to the previous menu. This is my code: #include <iostream> #include <windows.h> #include <vector> #include <stdio.h> #include <conio.h> #define TOTAL 1...
asked by 24.05.2017 / 22:41
1
answer

"Force" A variable type char to uppercase

I would need a function that can convert a "char" variable from lowercase to uppercase after being entered. I know the function toupper () but I understand that it only works with character strings, and I just want to work with a variable. Ex...
asked by 18.06.2017 / 20:30
1
answer

problem step of arrays as pointers

I was doing a program to calculate the central element of a vector, as parameters I have to pass the base direction of a vector (that is, the pointer is already by default points to the first element) and the number of elements, my main The ques...
asked by 08.05.2017 / 11:57
3
answers

Help with matrix in c ++

Could you help me modify this code? I spent the whole morning trying to make it comply with this statement:    Create a bidimensional matrix or array containing four (04) columns and the rows that you indicate by keyboard, the first three...
asked by 12.07.2017 / 23:09
2
answers

file name (c ++)

I have a question: How can I make or modify this subprogram so that when I enter the name of the file as input parameter, give me this name.txt? I attach the Subprogram here: void guardar_fic(string nom_fic){ ofstream entrada; entr...
asked by 13.04.2017 / 15:19
3
answers

Erroneous result C ++

I have a problem in c ++ I'm trying to do a simple calculation using POO but the result is wrong or close to what should be: #include <iostream> using namespace std; class productos{ public: productos(int x,int y){ x=n; y=m; cout<...
asked by 23.08.2017 / 05:26
1
answer

Doubt with Nested Cycle Exercise C ++

Good afternoon, in the following exercise, if I want to serve two people for example, when asking for the first data and what you are going to buy, you do not throw the invoice, but you throw it with the last one or this case In the latter case,...
asked by 08.04.2017 / 18:08
1
answer

If I initialize the constructor with a string message because I get this message?

I am learning to make trees in a binary search and inside a class I put another class in private with the name "inside" then I created a pointer * miRaiz pointing to the class "in", then to my class "Out" in the public part there is an empty met...
asked by 13.03.2017 / 03:52
1
answer

Solve the following argument errors

Hello, I can not solve the following argument errors. The code I use is the following: string pro = "aplicacion"; HRSRC res=FindResource(NULL,pro.c_str(),RT_RCDATA); HANDLE hFile=CreateFile("C:/Users/Usuario/Desktop/aplicacion.exe",GENERIC_WRI...
asked by 15.02.2017 / 20:46
1
answer

Classes in arduino problem with the loop

good morning I have a problem when doing a class in Arduino and it is that the code is not repeated as in a loop, I explain: I made a library that allows me to control a series of LEDs in a blinking way and I want that blinking sequence to...
asked by 22.04.2017 / 00:03