Questions tagged as 'c++'

2
answers

Structure with pointers that "searches" for a preset stored data

Good morning. I have a problem with a code that I am doing for a project in c ++, which I need to search in a structure, in which I use pointers, a specific data. In this case it is the name of a metro or train station. I have tried several thin...
asked by 19.02.2017 / 21:02
1
answer

Doubts about cleaning buffer in C ++

I have a function that reads a name, if the name is new it saves it in a data structure and if the name is repeated it asks for the name again. (I have other functions similar to this, but this is the only one that uses getline (cin, variable)...
asked by 09.01.2017 / 08:27
2
answers

Exact movements with Delta-Time. In SDL with C ++

I'm creating a 2D game with C ++ and SDL , where in time management I use the Delta-Time technique / em> (delta time) for movements with smooth movements. The execution is perfect, however there are displacements of objects (platforms) th...
asked by 09.01.2017 / 09:56
2
answers

Doubt with introduction of data by the user

I'm starting in this of the programming in C ++ and I have to say that it is one of the few programming languages that I really liked. Now I'm with the topic of data entry by the user, but I have a question, because in some sites I see that t...
asked by 22.11.2016 / 22:04
1
answer

Doubt with cin.get ()

I am now with the conditional statements and the logical operators, and the following problem arises. If I have the following code: string deporte; cout << "Indica tu deporte favorito: "; cin.get(); getline(cin, deporte); if (deporte...
asked by 23.11.2016 / 03:24
3
answers

How to delete a repeated number in an array? C ++

Greetings, I'm studying programming in c ++ and it's complicated in one part of the problem. The problem is following:    Perform a class that contains a one-dimensional array of 30   integers (possibly repeated) and get that output   same ar...
asked by 02.11.2016 / 22:24
1
answer

Problem to compile boost library in QT

Hi, I'm trying to use this library in a project in QT but I never recognize it. Basically I put these libraries: #include <boost/bind.hpp> Code of my project: QT += core QT -= gui CONFIG += C++11 QMAKE_CXXFLAGS = -std=c++11 TARGE...
asked by 05.11.2016 / 17:37
2
answers

How to make the result of x and not x1, c ++

I am developing some basic exercises and I get stuck in this, the program asks me to make a result of a variable x1 and that is equal to nX but if it is 1 that only shows x. Example    a = 1 * x a = x #include<iostream> using namesp...
asked by 06.06.2017 / 02:26
2
answers

Function that controls process?

Good, I have a problem, I want this function to create a new event and then enter data in the created event. The problem is that if the user, first enter option 2, the program starts asking for the data. There is some function or how is the proc...
asked by 30.11.2016 / 12:55
2
answers

InsertSort of double list linked to simple list

I have 2 lists (one simple and one double), in the double implement the method of insertsort without any problem and I would like to implement the same sorting method but in the simple list, the code is as follows. Insert at start: v...
asked by 05.05.2016 / 09:21