Questions tagged as 'funciones'

1
answer

Error calling functions using C structures

I am very confused in this code. I get confused because if I declare my functions first before the structures the error that appears to me is : 6: 13: error: unknown type name 'patient' Putting the functions before the structures. #incl...
asked by 04.04.2016 / 08:24
1
answer

Arrangement of procedures c

I need to create an arrangement of procedures in c , I did it in this way but I get an error: typedef void TFunc; int main{ TFunc funciones[25] = {definicion de mis funciones}; }     
asked by 22.03.2018 / 18:27
1
answer

Use of * args and ** kwargs in python [closed]

I have seen examples of code in which the functions receive parameters *args and **kwargs . I do not understand that syntax nor in what cases it should be used. Although I have tried to read about it, I have only found informatio...
asked by 20.09.2018 / 07:48
2
answers

Is there any way to deny something like isinstance () in Python?

To make my question clearer, I give an example in code R which is the language in which I have a little more experience. Suppose I have the simple variable "a" that is worth 5. First of all I want to validate if it is numeric using is.num...
asked by 16.11.2018 / 20:50
2
answers

How to use a class as a type of a function external to the class?

How to use a type of a class inside a function external to the class? For example let's use this example of mathematics. I want to create a class abtracts Bola with two attributes and a function contiene that tells me if a point...
asked by 19.02.2017 / 11:38
2
answers

Collect id from a file with right click

I'm designing a web app, a cloud. When I upload a file to the database of the one ID, I show the file in question by screen. Up here without problems, the problem comes to me when I want to perform X action on that file. I have disabled the righ...
asked by 10.04.2018 / 16:28
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
1
answer

Pass date to function in php

I am doing a php script that, through a payment date, gives me the next due date taking into account the state, that is, whether this payment or not. Something like this: $list = $conn->query("SELECT * FROM cuenta WHERE useride = '".$code."...
asked by 04.02.2018 / 02:33
1
answer

Results of a function in a DataFrame in python

I have a function in python that uses values from two columns labeled as 'POSITION_X' and 'POSITION_Y' in a .csv file (df1) The function calculates the sum |Xn-Xn+N|+|Yn-Yn+N| where n is the row number and N...
asked by 11.05.2017 / 21:31
1
answer

Help with python functions

I made a code that uses some functions. Such functions give a value to n and as they are called, the value of n changes (these functions are at the beginning of the code). What happens is that when you execute the script, so do not call the func...
asked by 06.11.2018 / 04:37