Questions tagged as 'funciones'

4
answers

Program to count the vowels of a chain

   "Perform a call_count_name () function that receives as an argument any string and returns the number of vowels present in the string." def contar_vocales(x): voc=0 for i in len(cad): if cad[i]=='a' or cad[i]=='e'or cad[i]=...
asked by 04.11.2017 / 20:53
0
answers

Add more options in preg_match_all

I have this little code in preg_match_all , which follows a pattern that copies three urls that start with, /lima.php?s=img&v= ,/lima.php?s=ik&v= , /lima.php?s=zk&v= and copies the image paths of each one starts here a...
asked by 06.12.2018 / 18:23
0
answers

Problem in dynamic matrices within a function

I would like to know if you could help me pass a function that is for a 3x3 matrix, for a dynamic matrix, is that I can not find the solution to create it, this is the function: bool yavisitado(cuadrito estado_a_verificar) { list < cuad...
asked by 29.11.2018 / 03:58
2
answers

Help to create code in c ++

Can you help me to make this code in c ++ please?: Create a two-dimensional array or array that stores consecutive multiples of 7 (7, 14, 21, 28, ...). The number of rows and columns will be entered by keyboard. The sum of the numbers located...
asked by 13.07.2017 / 03:01
0
answers

Problems with encryption

Look, I have two projects, one next to the other and one runs perfectly and the other does not. look at the codes: <?php $opciones = [ 'cost' => 11, 'salt' => "ÑsodEFHbzvuQlIwtvHgVsCsFbaUdjpwsHxwvHBcppgyveqUksQb3769520293...
asked by 23.11.2018 / 17:57
1
answer

how do the elements of a list go from one function to another?

I would like to know how to pass the list of the function "repeat_question" to the function "main". I try with "return name" but it does not happen. In what failure? def main(): print('escribe algunos nombres y luego presiona enter:')...
asked by 07.11.2018 / 05:07
0
answers

Make a function return an implemented object c ++

I have a class created and that works correctly, in this case it is a Queue, with its attributes and functions. Now I want to create and invoke a function that returns an object of this type but throws me an exception. I have: Cola trocear(cha...
asked by 04.11.2018 / 13:59
0
answers

how do I read any math function?

Hi, I've been doing a program for a subject that is numerical calculation and based on a topic called error analysis, that theme has very basic formulas and are developed by mathematical functions such as: cos (x) + x- 2, sin (x) -x ^ 2 + 1, tan...
asked by 04.11.2018 / 01:50
0
answers

why does my algorithm only work for the first values of n? (ACM problem baggage 2014)

The problem is simple, order 2n (3 ≤ n ≤ 100) pairs of letters BABABABA by moving blocks of letters (you always have to move a pair of continuous letters to two continuous empty spaces) to arrive at an expected result AAAA .. ..ABBBBB ... BBBB s...
asked by 04.11.2018 / 21:59
2
answers

help to close the program

Hello, I need to close this program but I have a couple of blunders. I need if you can help me find the problem, the program consists of a student registry for scholarships, that the data is by console this is the code. package control8o...
asked by 23.10.2018 / 03:47