Questions tagged as 'array'

1
answer

PHP update in stock

I would like to get the amount used and whether or not the person received it and update it in mysql. <html><title>ProdutosdaOS<?phpecho$id;?></title><scriptlanguage='JavaScript'>functionSomenteNumero(e){vartecl...
asked by 20.05.2016 / 16:14
0
answers

Working with vectors [closed]

I need to generate a vector with 100 random number positions and see what the proportion of numbers 2 to every 10 vector positions, the first part I got, but the rest does not help? import random as rd v=[] for i in range(0, 20): w=rd.r...
asked by 30.11.2015 / 21:44
1
answer

How to do auto-complete / incremental script

There was a need to create a text field that might be given city names, however, if you completed the word in the field when you started the first digits. I need some idea, function with Arrays literals, something like this: <...
asked by 17.04.2016 / 00:01
1
answer

Saving names

I want to allocate a string inside any structure so I can fetch these strings afterwards. I need to enter a condition to end the insertion of names. I'm thinking of a structure that is running until the end of the reading, I think it would be a...
asked by 11.02.2016 / 03:51
1
answer

Store all array positions in a variable?

I have an array that contains 3 positions, each of which stores a long text, how can I store all three of the array positions in a single variable? for example: Array ['Gol', 'Pallium', 'Celtic'] $ AllAsMarcas = // All positions in the arr...
asked by 15.09.2015 / 02:24
1
answer

Save information from a form [closed]

Hello, I'm developing an online proofing system as follows: Thequestionscomestraightfromthedatabase(MYSQL)andsoIputtheproofshowingquestionbyquestion,whentheusermarkstheanswerandclicks"Next" advances to the next question. My question is: ho...
asked by 11.12.2014 / 17:59
0
answers

Sort in two-dimensional array in VBA

I have a two-dimensional dynamic array : Birth dates in the first dimension (column) and names in the second dimension:    Example:    MyArray (0,0)="01/05/1990"    MyArray (1,0) =   "Luisa Silva" I would like a sort method that I...
asked by 08.07.2015 / 00:52
2
answers

problems with string and split C # [closed]

I have the following function: string str = "1 2 3 4 5"; //string para separar string[] ArrayValor = str.Split(" "); //nesse caso o array seria {"1","2","3","4","5"} But I wanted something more generic, for example, if the user entered "1-2...
asked by 18.07.2017 / 22:09
2
answers

How do I determine the number that appears the most times and the position in which it is?

A vector of n positions has been read, how do I determine the number that appears the most and the position it is in? programa { funcao inicio(){ inteiro vetor[] inteiro numero, conta inteiro i, j, n leia(n...
asked by 17.10.2017 / 17:31
2
answers

Sort two-dimensional array by date index (timestamp)

I have the following array that contains file information for a folder: Array ( [name] => Apresenta__o1.ppt [server_path] => C:\wamp\www\portais\arquivos\alunos_45258\files\Apresenta__o1.ppt [size] =>...
asked by 29.07.2015 / 15:00