Questions tagged as 'ordenamiento'

1
answer

Assign a row from one vector to another in c ++

I'm doing a simple program in c ++. I need to sort a vector by a value in a column that I have in each row. The sorting method is simple, but I can not do the row assignment: void PruebaVector2::ordenar() { int i, j; int* temp;...
asked by 07.10.2016 / 04:32
1
answer

Order of parameters. PHP [closed]

I am reading the PANDA PHP book for beginners, and in a section it appears Order of the parameters, which I have to pass Where do I get that order? What is the ideal order?     
asked by 26.10.2016 / 06:27
2
answers

recursive MySQL query

Good afternoon colleagues, I hope you can help me with this query that drives me crazy. You will see I have a table with data like these And I need an SQL query I order the data in this way Vertebrates Mono Cat Dog Horse M...
asked by 18.04.2017 / 04:09
1
answer

Invalid conversion from 'int' to 'Class **'

I'm doing a program that orders a list of 3 different ways (by selection, bubble and shell method). I get the following error Invalid conversion from 'int' to 'Animal**' and void value not ignored as it ought to be in these lines...
asked by 14.07.2017 / 16:55
2
answers

Treeset contains repeated elements

I am trying to keep an ordered list without repeated elements. I have created a TreeSet, but I see that it inserts repeated elements and I do not see clearly why. If I use TreeSet.contains () it does not detect it either. Here the code TreeSet...
asked by 30.06.2017 / 12:04
1
answer

Order and ways to group elements in linked lists

Hello, can someone help me with this problem? I would like to fully understand the handling of the linked lists and I stayed with this example. Make an application that allows to generate different lists related to a specific community of neighb...
asked by 30.09.2016 / 03:16
2
answers

Transposition of Columns into a Matrix in c ++

Hello, I have a char array initialized as follows: #include <iostream> using namespace std; main(){ char matriz[6][5]={ {'F','H','V','D','U'}, {'E','L','Q','U','E'}, {'P','E','R','S','E'}, {'V','E','R','A','A'}, {'L','C','A','N','...
asked by 28.03.2016 / 21:24
0
answers

My bubble order does not work correctly, List doubly linked

As an activity I have to use a double linked list created by me, and likewise implement a bubble method to order the values. My Node is this: template<class T> class NodoD{ private: T dato; NodoD<T> *sig;...
asked by 14.09.2018 / 04:26
0
answers

Quicksort, for two-dimensional matrix

How I am doing a program in which I need to apply Quicksort, now I work with a two-dimensional matrix, what I want to achieve is that when 2 equal numbers are compared ( matriz[i,j] <= matriz[i+1,j] ) the value [i,j+1] and the va...
asked by 03.09.2018 / 06:07
0
answers

Sort alphabetically in a binary tree

It is a binary tree that has the purpose of keeping names in alphabetical order however I am not sure that I am passing the parameter correctly. I'm sorry if the code is a bit long. #include <stdio.h> #include <stdlib.h> #include &...
asked by 11.02.2018 / 22:09