How do I get the names of the files in a directory and put them in a multidimensional char array?
#include <stdio.h>
#include <dirent.h>
int main()
{
char arrayNomes[10][50];
char dirn[50];
DIR *dir = NULL;
struct...
I'm trying to make this code, which is basically a 6x6 two-dimensional array with the distance between 6 cities, then collect the route the user made in a simple array [6], and calculate the total miles that he traveled.
The code:
package r...
All good personal,
I'm facing a problem with foreach in PHP, where I get an xml and convert it to array.
In some cases xml has only one item (see example below)
<?xml version="1.0" encoding="iso-8859-1" standalone="yes"?>
<bloco...
I need to send only one line of a multidimensional array as a parameter of a function , without having to transfer this line to another array .
For example:
call:
var
UmArray : array [0..4, 0..20] of integer;
begin
//preenche o arr...
I need to sort an array in cakephp according to the order passed by parameter.
The code that does the sort would be this:
//Realizar a ordenação de acordo com o que receber do formulário no ajax
if ($this->request->data['Adverte...
I want to get the list of the variable numeros , generated by the following loop:
Scanner kb = new Scanner (System.in);
double [] numeros= new double[10];
for (int i = 0; i < numeros.length; i++)
{
System.out.println("o proximo nu...
I have a terrible problem, I can not update mysql via PDO, with array coming from some form fields. I've tried a lot and so far I can not do the update. The array comes in this format.
Array
(
[id] => Array
(
[0] =&g...
I have an array like this:
$array = array(
user => "user1",
name => "name1",
books => "book1", "book2"
);
I want to go into books and check the value that elements have inside it, in case it would be 2 (book1 and book2)...