Questions tagged as 'c++'

0
answers

Error in option display list C ++ (simple linked list)

Hello, the following was good to see if someone could help me with this problem in my c ++ code, the option to insert data into the list works correctly but for some reason I can not show that data when executing the option 2: void menu(){...
asked by 31.10.2018 / 23:26
2
answers

how to modify objects in a form, from another form, QT creator

How can I modify the components of a mainform.ui (Qlabels, comboBox, etc.) from another form, and vice versa? ex: 1-mainform.ui has a button (called "button1"), when I click on button1 I want to disable a button located in otherform.ui (called "...
asked by 26.10.2018 / 15:29
1
answer

Switch case to compare strings [duplicated]

I have a question about the use of the control structure switch since I'm just learning C ++. Can you evaluate catacler chains in a switch ? According to me you can only integer values: #include <cstdlib> #include <iost...
asked by 27.10.2018 / 05:55
0
answers

C ++ - Tray Icon does not send two different notifications

I'm having an invention with the notifications of the Tray Icon, it turns out that when I press a key the function Siwth () is activated and it shows a message, up there all ok. I put an if inside the ShowMessage to be able to show different mes...
asked by 22.10.2018 / 14:44
1
answer

The query values are not displayed in BlComboBox. QT4

I can not get a BlCombobox to show me the values of a query. I've done it like others in the code and nothing, I do not know what can happen. interval_date.h #ifndef INTERVALOFECHAS_H #define INTERVALOFECHAS_H #include "blcrear.h" #include...
asked by 17.10.2018 / 10:26
1
answer

How can I spend less memory on this graph problem?

#include<iostream> #include<vector> #include<cstring> #define TAM 1000000 using namespace std; void dfs( int,bool[] ); vector<int> adj[TAM]; int cont, N; int main( ) { int I,i,a,b,p; char oso; cin >> N &...
asked by 12.10.2018 / 09:27
2
answers

Because the line is skipped - cout "Registration:"; cin.getline (students [i] .matricula, 15); - and he does not ask me for the registration? [duplicate]

#include <iostream> #include <conio.h> #include <stdlib.h> using namespace std; struct alumnos { char matricula[15]; double calificaciones; }alumnos[35]; int main(){ int n_alumnos; char resp; double prom_alumno...
asked by 10.10.2018 / 00:15
0
answers

Generation of tokens in cpp circular alphabet spaces error

I'm having a problem with a program in cpp that when the user enters a number greater than 3 or that enters 4 or 5 when the letter c is greater az does not return to the letter to bone does not subtract the numbers just like indicate in the code...
asked by 03.11.2018 / 03:15
1
answer

How can I move the beginning of a parabolic shot to the right?

I am a beginner in C ++ and I have a doubt. They left us a shock exercise between parabolic projectiles, Instructions: Create a program where there are 2 cannons, one is fired at an initial velocity v1 and a theta angle, another is fired at a...
asked by 08.10.2018 / 03:22
1
answer

Problem with polymorphism and vectors in C ++

Hello, I am doing a program in C ++ with OOP and polymorphisms but I have a problem when using vectors, this is what I have of code: Person class (parent class) #pragma once #include <iostream> #include <string> using namespace...
asked by 04.10.2018 / 20:01