Questions tagged as 'array'

1
answer

How to use pointer and vector in a single struct in C?

I can not run a program that needs functions to execute a procedure, this function receives a vector of type struct through a pointer. It does not have a compilation error, but the program crashes when it runs and does not work. How do I use all...
asked by 05.06.2016 / 02:32
1
answer

Generate clash keys between teams using an array in PHP

Oops !! I have the following array in php , I need to create a clash between the teams and the teams that are of the same group / example array Time 01 and Time 02 can not face in the first round I thought of checking if the element is fr...
asked by 05.06.2016 / 04:24
1
answer

Error compiling a modularized program in c

I made a program that read strings of a file separated by - (hyphen) and saves each string in a position of a struct vector. When compiling, it generates the following error message:    array type has incomplete element type I s...
asked by 04.06.2016 / 04:57
2
answers

why is 8 appearing and not the number referring to i?

<style> .menu > li:hover .sub-menu{ display:block; } </style> <ul class="menu"> <li>li 1</li> <li>li 2</li> <li>li 3 <ul class="sub-menu"> <li>l...
asked by 08.05.2016 / 19:07
3
answers

How to make the first two numbers of a Math.random sequence are not EQUAL

I made a lottery system in order to learn, I will not post the whole code here just the part that I am packed. It is as follows: The draw of the PC is a sequence of 6 numbers that I present in the DOM (it does not matter), so I want the first...
asked by 05.10.2014 / 07:02
0
answers

Is it possible to populate a tree list in reverse using stream?

The question is as follows My class public class Node{ private String name; private Node parent; private List<Node> children; public Node() { } public Node(String name) { this.name = name; }...
asked by 25.05.2016 / 14:23
2
answers

Problems with Jquery selectors

My problem is this, I have this code: <script language="javascript"> $(document).ready(function(){ $('#simular').each(function(){ $(this).click(function(){ $("input[name...
asked by 13.04.2016 / 03:57
2
answers

PHP: Txt for Array relating the lines.

Next, I have a text file (.txt) with the following structure: |100|Nome do Cliente| |200|Produto 1|R$100| |200|Produto 2|R$200| |200|Produto 3|R$300| In short, whenever the line starts with | 100 |, all | 200 | which follow below are relate...
asked by 09.03.2016 / 19:36
2
answers

Why declare pointer to array if arrays are already pointers?

If a char array is already a pointer, why declare a pointer to the array? And what's the difference between char exemplo[10] and char *exemplo[10] ?     
asked by 08.10.2015 / 03:19
1
answer

How to scan a complete list in selenium

I have a screen where I can create users This screen is made up of 4 columns where: A check-box description Code Status (Active or Inactive) I would like to know how to do the following situation I need to inactivate let's s...
asked by 19.08.2015 / 19:07