Questions tagged as 'funciones'

1
answer

Problem with functions and loop for

I can not effectively do that while executing the readSuccessB(evt,file) function, pause the loop and resume right after finishing that function. I have tried callbacks creating variables so that if it is running do not call the func...
asked by 31.12.2017 / 03:43
1
answer

How to apply a function to an array

I need to apply a function to a variable that returns this array: "content_block_images": [ { "image": 10741 }, { "image": 10742 } ] But this function only accepts that you enter the id simply tha...
asked by 23.11.2016 / 19:42
1
answer

Problems with C libraries

I have this library to perform different validations in my project #ifndef VALIDACION_H #define VALIDACION_H #include <stdio.h> #include <stdlib.h> #include <string.h> #include <ncurses.h> #include <ctype.h> #inc...
asked by 01.12.2016 / 21:07
2
answers

Dice launch simulator in Python

I am trying to create a function that every time it is called, generate a list of 100 random launches of a die using the random library. import random def dice(): dado = [] for i in range(100): dado.append(random.choice(range(...
asked by 04.09.2017 / 08:38
1
answer

As non-object oriented software diagrams?

I have developed a small system in Python, but I have not defined classes. They are simply files with functions that call each other and a file Main.py central. I am now trying to represent this system, but I can not find the indicated...
asked by 28.10.2016 / 23:20
2
answers

Help with exercise in JS creation and use of functions

I need help with the following exercise: Develop a function that punctuates a hand of cards, which has as parameter an array of letters, each one represented by a dictionary with suit and value. When scoring, the cards add their value except...
asked by 07.08.2018 / 01:05
1
answer

Get the day of the week according to a date in javascript

I have the following code of a function, I need to get the day of the week from a day that is sent to the function, so I have it: diaSemana : function(d){ var fecha = new Date(); var dias = ["L", "M", "X", "J", "V", "S"...
asked by 26.05.2018 / 01:34
1
answer

Adder with tkinter

Hello is my first question on this page, I hope not to make mistakes in the formulation of the same, well what happens is that I want to make an app that when click on a button, increase the value of a variable and appear in the text box of the...
asked by 21.03.2018 / 00:17
4
answers

How to update and execute the rest of the function?

Well, I'm running the following code that modifies the content of the iframe, and since both pages are in my site this goes without problems (it's not the problem): <!DOCTYPE html> <html> <body> <iframe id="myframe" src="d...
asked by 27.10.2017 / 14:13
3
answers

How can I execute several functions at the same time?

I need to execute all previously listed operations at once, that is, addition, subtraction, multiplication, division and factorial of the first number with just choosing the option; that is, without leaving the switch . How can I do it?...
asked by 27.03.2017 / 22:26