Questions tagged as 'for'

0
answers

Vector in OpenGL

Hello, I'm venturing into OpenGL and so far I know the basics of creating figures. I need to create a number of bars ranging from 1 to 64, the problem is that I need to do this with a FOR. When the first for counter starts, it creates the first...
asked by 01.09.2017 / 18:05
2
answers

My while closing before it really should

I made a code that should take the number of rows from a txt file and then use this same number of rows in a while to convert the columns and rows to array. lines = 0 ln = 0 for line in dataset: line = line.strip() lines += 1 prin...
asked by 25.08.2017 / 01:58
2
answers

Group tags separated by PHP commas

Good morning! Next I have a question, and I am not able to reach conclusion. I'm creating a field called tag where it fetches tag related posts. In the bank it is filled as follows; post1 tag: exemplo1,exemplo2 post2 tag: exemplo3,exe...
asked by 18.06.2017 / 09:50
1
answer

Treat multidimensional array in AngularJS

I have this function: getProducts(){ this.auth.getProducts().subscribe(data => { this.turmas = []; this.produtos = []; this.cursos = []; for (var i = 0; i < Object.keys(data).length; i++ ) {...
asked by 17.05.2017 / 16:01
0
answers

struct that stores number of rows and columns of array and a vector

I used a struct to store the number of rows (m) and columns (n) of the array and another to store number of columns of the vector (n). I make the product of two arrays in the function prod() and the product of a matrix with a vecto...
asked by 25.05.2017 / 23:49
3
answers

multiply div's repeat loop with divs

I have a list of channel names that are broadcasting a particular game in twitch.tv (api) , so I can get all channels and list them. The question is how to put them in a div To be in blocks horizontally (as in the image) and also...
asked by 27.04.2017 / 19:12
1
answer

error result.lenght ajax with wcf

The following script works in part: <script type="text/javascript"> function ConsUsuario(){ var value = $("#codUser").val(); $.ajax({ type: "GET", url: "ServiceRestPub/ServiceUsuario.svc/ConsultarRe...
asked by 11.05.2017 / 12:56
0
answers

OutOfBounds error

Well, I asked you to help me with this mistake! This is part of the code of a game, the idea and print anything like this M M M 123456789012345678901          1 2 The positions of the M will vary with each move, Thank you! Exception in...
asked by 02.12.2016 / 11:48
1
answer

Counters not being incremented in code

I'm having some difficulties with the code snippet below: The call to this function is: cache = OperaCache(true , endereco, op, cache, descricao, read_hits, read_misses, write_hits, write_misses); VETOR_CACHE OperaCache(bool conta...
asked by 23.11.2016 / 13:50
2
answers

How to use "for" and "while" to capture cell tags from multiple tables in an html file?

I have several HTML files that I need to capture the data inside the tables, to launch in the database, but I can not navigate the html tree to find the tags that are cells, the html is this: <div class="details"> <div class="title...
asked by 03.11.2016 / 22:10