Questions tagged as 'loop'

2
answers

help with indentation that is generating error in python 3.6

I'm doing a webcrawler I'm having the following problem. I had to do a separate program to print out how many candidates passed each course. Except that the last line is not being executed, and that it would make the vector names go to the next...
asked by 02.03.2017 / 23:24
1
answer

How to find higher value Chained List C?

I'm having a hard time resolving a C exercise, I've never programmed it, and I've taken C in the first semester, can you help? I need to sort out 3 integer values between 0 and 200 in the main function. If the value is Par, I need to put t...
asked by 20.03.2017 / 02:35
1
answer

How can I remove each link that points to a video after the end of the video?

I have this div down, namely with id and having within it elements p followed a (anchor): var vid = document.getElementById('player'); var link = document.getElementById('lista').getElementsByTagName('a');...
asked by 02.04.2017 / 20:52
1
answer

Doubt about matrix values

   A good example of a data set is the booking of a flight ticket. Build a C program for booking airline tickets. The plane has 50 rows with 6 seats each. The program should have:       Two vectors whose number of positions is the total numbe...
asked by 24.02.2017 / 22:55
1
answer

Variable not set in for-loop in Python

I'm having a problem with a code that should read 4 values using raw.input().split() and then a for-loop to transform those values into float . The interpreter returns me:    "name 'val' is not defined" Follow the code...
asked by 26.08.2016 / 00:46
2
answers

How to rewrite the initial array and remove items by ID in the smarty view?

I'm using the View rendering library with Smarty . In my view, I have an output with the array of product information inside a foreach: {assign var='remove_products' [712, 716, 717, 718, 719, 720, 745, 755, 758]} {foreach from=$product...
asked by 08.12.2015 / 19:42
1
answer

How to do 'Loop' in multidimensional 'Array' in Bash?

Situation: I need to create a multidimensional array script. Example: Table 1 > > Fields id and name Table 2 > > id and phone fields Current script: #!/bin/bash declare -A arr arr[tabela1]=id arr[tabela...
asked by 08.09.2015 / 16:26
1
answer

Add element to an Array

I need to add lista.get(i) to an array, it will be added to the array with the value of key spec_linha-criativa changed. However, in my code I always lose the reference and when j = 1 my list has the same values. For examp...
asked by 03.07.2015 / 20:31
1
answer

How to loop a custom post type following the menu_order?

On a static page in wordpress I'm looping a custom post type from a list of services as follows: $temp = $wp_query; $wp_query = null; $wp_query = new WP_Query(); $wp_query->query('showposts=14&post_type=servicos'.'&paged='.$pa...
asked by 21.07.2014 / 07:18
1
answer

Divide a table to optimize your page space

I have array and with it I make a table with data comparison, this table is too large (you have to scroll scroll of the mouse a lot) and the right side of the screen is blank. Script: reset($quebra); while (key( $quebra) !=...
asked by 30.01.2014 / 13:01