I have the following code that will bring me an indeterminate list; for example 5 items. I would like to return only the last item in the list.
for(var i = 0; i < data.list.length; i++){
if(Date.parse(data.list[i].date) >= dateA){...
How to remove the first item from a non-foreach array.
I have tried this, but it says that there is no remove or removeAt method.
int[] arr = {1,2,3,4,5};
var removeu = Array.Remove(arr,0);//Agora percebi que isso é javascript, rs
This...
In the example below, how would I stop printing the positions of this vector that are equal to 0
int[] caluculo = {50,6,0,59,6,7,0,6,8};
for(int i = 0 ; i < 9 ; i++)
{
Console.WriteLine("{0}",calculo[i]);
}
I'm having trouble converting string {data} to Json , I get it separated by commas several times, I would like to convert it to Json to collect the first key
var data = [ "$SP", "92", "00:01:36.340", "00:05:48.929\n" ];
var...
I have these two arrays below:
$a = [1, 2, 3];
$b = [1,[2, [3, 4]]];
I know that $a is a% one-dimensional%, and array , multidimensional (arrays array).
Now, how would I find out, through a function, that I returne...
I'm trying to make a if within a foreach and the situation is as follows:
I have array that I called $ enrollments which returns like this:
array(2) { [0]=> array(1) { ["chave"]=> string(1) "1" } [1]=> array(...
How do you include 3 numbers at the beginning of this vector without affecting the previous numbers?
I'm trying to do this:
int main()
{
int v[30];
int i,x;
for(i=0; i < 15; i++)
{
printf("Digite 15 numeros");...
The user pastes the values that will be saved into the vector and then displays those values. However the following error is occurring:
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in vetoor.exe ".
My code l...
I'm having trouble reading a JSON that I get:
{"data":{"charges":{"data":{"charges":[{"code":10006756,"dueDate":"13/09/2014","link":"https://www.teste.com.br"}]},"success":true}
I need to assign these values to my variables, this array will...