Questions tagged as 'c++'

3
answers

Concatenate two lists simply linked

I am trying to perform a procedure that when I receive two lists I upload it in a third one. My strategy is simple: As long as there is an element in list1 - > Add item in Concatenated list. As long as there is an element in the list...
asked by 12.11.2017 / 18:36
1
answer

How to save and load a binary tree in a file?

I have a question about how to save and upload a file to a tree. As I understand a tree is that it can not be saved only by traveling both sides separately (Left and Right) if not that it has to travel in a special way. As I understand how to sa...
asked by 16.11.2017 / 20:33
1
answer

QT Doubt graphing path of points

I receive positions in the plane and I want to draw the route. It is not a line, but a path ... that is, I receive every point and I generate a polygon that has a "width of work" of 7, so every point I receive, I generate a polygon of 7 wide and...
asked by 03.05.2018 / 14:13
2
answers

Enter ascii code inside quotes c ++

Could you tell me how to insert ascii codes in "" ? For example insert 3 (decimal) which in ascii means End of text within char asd = "" . Or within string asd = "" And I also saw that \n is used to jump a...
asked by 13.05.2017 / 22:53
1
answer

Failed to access dynamic arrays c ++

Good afternoon. I spent the whole afternoon going around revising my code since I have been using the DEV C ++ and I have compiled a matrix whose declaration had variables, however, I knew that it could not be and when I passed it to other compi...
asked by 26.05.2017 / 20:02
2
answers

Qt handling of QFile files

I'm starting in QtCreator and I'm trying to manage files. I want to save a int in a file, and when I press a button it shows me that number in QSpinBox but I do not know how to return the type character int . My test code:...
asked by 11.06.2017 / 07:41
1
answer

Inventory Management in C ++

The program is an inventory control that captures product information, such as quantity, wholesale and retail prices, date. When the user chooses the Buy option, the program asks for the new product information to be entered, when it reache...
asked by 05.05.2017 / 03:03
2
answers

can members of an object defined as a parameter be accessed in a generic function?

Good morning I am creating a method member of a class, that allows me to receive an object and save the information of the object in a file. MyClase::guardarDatos(Objeto a); Specifically, I need to save three objects that are derived fro...
asked by 28.09.2016 / 21:34
2
answers

doubt matrices c ++ [closed]

I have the following exercise in which they ask me to compare a value with the numbers of a matrix given a precision that can not be exceeded, the numbers that meet that condition will be printed in a new matrix and if they do not comply, it wil...
asked by 21.02.2017 / 01:42
2
answers

Doubt about files in C ++, Basic

I just started studying files in C ++. I was trying to do an exercise but I have not been able to get it out. The statement is as follows:    Perform a program that reads the name of a file by keyboard. This file will contain a series of t...
asked by 23.02.2017 / 16:50