Questions tagged as 'for'

0
answers

Why is not my condition giving me the expected result?

I'm performing a line break without using the wordwrap() function. I'll get a string with the text, and an int with the length of characters allowed by rows as a parameter. I'll have to cut that string, then insert it into an already c...
asked by 24.09.2018 / 18:51
0
answers

Save data from the for loop in the database

Good morning I'm developing a financial part where I fill in a certain form that is due date, full value, discount value, school year, discount percentage and installment amount before saving those installments in the database I created a for lo...
asked by 14.09.2018 / 16:50
2
answers

How does the "for" inline command work?

I did a question regarding a Python algorithm, but in resolution of the user Anderson Carlos Woss he used a type of% inline that I had never seen and that left me confused. Here is the code snippet corresponding to for : groups...
asked by 27.09.2017 / 13:54
0
answers

Error in the loop process using for

Hello, I would like to help you, to try to solve the following problem, I created a script that allows you to get the direct link from a host of online videos upload, the process works, but I do not know why the loop does not repeat it's working...
asked by 21.08.2018 / 13:57
1
answer

PHP: Group data without using 'group_by'

Does anyone know how to group data without using group_by in the query? I need every 10 results to create a div , that is, 10 records within each div I do not care about values. <?php foreach($resultados->result() as $resultado)...
asked by 22.07.2018 / 03:50
0
answers

"SIGSEGV ON THREAD", does anyone help me to solve, and also if possible, to complete the program?

It's the following, I do an info technician, and I'm learning C just two months, and I know little yet. Recently my teacher asked to make a program in which user entered with two number num, and that each position of two vectors n, were filled i...
asked by 19.06.2018 / 02:36
0
answers

Problem with iterating an array in php

I have the following code. $array = array(1,2,3); $arr1 = array(3, 4, 5); $data = []; for($i = 0; $i < count($array); $i++){ $data["ca"] = $array[$i]; for($k = 0; $k < count($arr1); $k++){ $data["ser"] = $arr1[$k];...
asked by 18.06.2018 / 21:14
0
answers

How to generate multiple nested repeat structures with methods

I need to generate multiple nested structures (26) I wanted to know how to do this with pro code methods do not get too large an example of the structure I need with 4 nested: public static void main(String[] args) { String[] vet={"1","2",...
asked by 30.05.2018 / 00:41
1
answer

Animation to decrease the size of a cube in Unity

Hello! I'm in Unity using C # and I have a cube that when I press 'q', it decreases to 0.5 of scale starting from scale 1 and when I release 'q', it goes back to scale 1. I wanted there to be some quick animation of the decay and growth of the c...
asked by 11.05.2018 / 05:10
1
answer

Cycle is only executed once within a while and should always be executed

listaA = new ArrayList <>(); boolean n = true; while (listaA.size() < listab.size()) { Log.i( "while ordena" , String.valueOf( listaA.size() )); valorAl = nRandom.ne...
asked by 25.04.2018 / 00:30