Questions tagged as 'loop'

1
answer

because the iteration of the x of the input does NOT interfere in the iteration of the x of the while loop, and is it the same variable?

I'm learning programming logic with Python and I do not understand how the x of the input does NOT interfere with the iteration of the while loop, since it is the same variable. Please, I would like you to explain, valew !!! #!/usr/bin/python3...
asked by 29.03.2017 / 17:42
1
answer

Reversing the process of a function

I was thinking of a project to test skills, over a loading bar and I thought, we were able to undo a modification on a page normally, but did the opposite process? for example, we have an automatic slideshow, every 1 second he changes image, alw...
asked by 20.03.2017 / 18:47
2
answers

Loop from the Wordpress category

I'm trying to loop only from the category I'm on Wordpress and I'm not getting it. Someone give me a light? I'm trying the archive.php file for the theme. You should only see posts in the open category. Below the code for my archive.p...
asked by 27.12.2016 / 23:45
1
answer

Go through Enum values in C

Do you have some way to go through the values of Enum in C and display in string format, like in Java, C # and other languages?     
asked by 10.12.2016 / 14:56
1
answer

How to fill an array [] [] with struct in C ++, in the code below

I need the employee code in a [2] [100] matrix and the sum of the children multiplied by how much each wins, in the module: int calculo(CADASTRO_FUNCIONARIOS cadastro[100], int n) Code: #include<stdio.h> #include<stdlib.h> #i...
asked by 31.08.2016 / 20:24
1
answer

Calling from 2 post in the wordpress loop

I am looping in wordpress using WP_query and need to list me only from 2 post, ignore the first 1 post. Previously I used the query_posts (offset) to do this, but using wp_query I'm not getting it. Could someone give me this help to see if...
asked by 22.07.2015 / 19:39
1
answer

Java: FileReader reading number that is not in the file

I have this TXT: 1,2,4,8,7 45,18,27,35,44 17,45,2,8,6 And I want to read this array to a Java array. Here is the code: public static void main(String[] args){ double[][] pesos = null; String valorFinal = "";...
asked by 23.05.2015 / 04:03
1
answer

How do loops and variables work in jekyll?

When I compare in if if post.category is as if there was no post variable that is no longer when I put {{post.category}} it prints the name. It's as if in if it does not exist anymore if I put site.post.category in if...
asked by 24.02.2015 / 15:24
1
answer

mysql update using array

I'm having trouble inserting an array into the database ... I tried this script but it only inserts the last id of the array; <?php $_conexao = mysqli_connect("localhost", "root", "", "vbt_posteds"); $id_ind = $_POST["inds"]; $id = "57";...
asked by 25.09.2014 / 16:07
1
answer

How to loop a PHP array

Hello, I have this array that is inside another array and I would like to read it, but I will never know how many keys the array items will have, since it can always be increased or decreased, but what I was trying to do was foreach ($dat...
asked by 19.12.2018 / 12:27