Questions tagged as 'array'

2
answers

Compare 2 strings

The idea is that you put for example A and I have to pass it to number, more than number is the value of the index of the array where I have the letters, but it does not work. //Varianles String[] letras = {"a", "b", "c", "d", "e", "...
asked by 11.03.2018 / 14:03
1
answer

SQL result in PHP as String

I'm trying to put the result of an SQL query in a string, concatenating the results. $poblaciones = $wpdb->get_results('SELECT poblacion FROM wp_custom_poblacion WHERE postal = (SELECT cod_postal FROM WPCalidad.wp_custom_proveedores OR...
asked by 12.03.2018 / 11:27
0
answers

I need to increase an array by 1 in Javascript

I have a problem, they have made me repeat a code twice and twice because I do not understand the exercise well, I need to increase an array by +1 and that array does not exceed 9. I would like you to see my code and tell me if I did it right or...
asked by 06.03.2018 / 22:51
0
answers

Question about matrix in java

I need to do this exercise Perform a Program that allows filling a square matrix of NxN and obtaining the following values: 1) Main and secondary diagonal 2) Sum of elements in each row 3) Value of an element in position X (row) an...
asked by 06.03.2018 / 04:09
0
answers

Replace a List with an Arrangement

My query is as follows I have the following method which I show below: public static string loadLista(string pStrOp) { System.Data.SqlClient.SqlConnection conn = new System.Data.SqlClient.SqlConnection(System.Configuration.ConfigurationMan...
asked by 27.02.2018 / 23:16
1
answer

event onclick button generated by array

I have the following code, and I want that by clicking the button execute the onclik function with the indicated parameter. function getcontent() { $.ajax({ url: 'https://example.io/blog', type: 'GET', success: function(result) {...
asked by 23.02.2018 / 23:13
0
answers

How to traverse a json array and get its values for mvc table?

function CargarDatos() { var idAtenci = @Request.QueryString["idAtencion"]; //Cargar datos de los usuarios compartidos $.ajax ({ type: 'POST', url: '@Url.Action...
asked by 23.02.2018 / 20:54
1
answer

Help! How do I get out of a while loop when it stays cycled in another while loop?

I have a cycle while to read a file .csv and another cycle while to read a array of letters. Inside I should print a letter and a line of .csv. But it remains cycled and only prints each letter of the alp...
asked by 23.02.2018 / 21:19
1
answer

error with arrayList in java

I'm doing an implementation of the n-queens problem in java, the idea is to have an arrayList that saves arrays and in turn each fix is a different solution, but when I check the arrayList the arrays are full of cigars 7. the code is this:...
asked by 25.02.2018 / 04:21
0
answers

How do I assign values from one arrangement to another?

I want to make a function that gives me back a specific position of an array of a smaller length with respect to another one in VBA - Excel, all my values are multiples of 28 and I had this idea in mind: Public Function arreglo_corto(rango As...
asked by 17.02.2018 / 00:21