Questions tagged as 'funciones'

1
answer

How did a structure go to a function, C ++?

They ask me to do a program that reads, name , code , and 3 notes , everything is 10 students; in a structured vector called vec_est , my problem is when sending the structure to the function. include stdio.h include stdlib.h include strin...
asked by 26.06.2018 / 22:43
0
answers

Python 3 - Is assigning a value the same as initializing?

When we create a variable var1 = function1 () is it assumed that an assignment statement does not return a value by itself? or is it different if it is a function?     
asked by 19.06.2018 / 16:05
0
answers

How to separate the data entered in a txt file by commas in c language?

int main() { struct datos { char nombre[21]; int edad; char ciudad[21]; }persona[10]; // Array de struct con datos para 10 personas. FILE *fichero; int i, numero=0; fichero = fopen("gente.txt", "wt...
asked by 24.06.2018 / 14:49
1
answer

Doubt of passage of vector of structures to a function in C

I get the following error when wanting to pass the vector to a function:    [Error] could not convert '(teachers *) (& prfsr)' from 'professors *' to 'professors'. I pass the code to see what's wrong, I've been trying for a while to s...
asked by 10.06.2018 / 06:07
0
answers

Detect if the URL is a wordpress

For this I make a query to domain / wp-admin and try to read the result with the following function: function Url_exists( $url = NULL ) { if(empty($url)){ return false; } $headers = get_headers($url, 1); //print_r($head...
asked by 04.06.2018 / 16:11
0
answers

Error when inserting a Postgresql record

I have my created function which receives parameters and I want to insert them in my product table but I get an error CREATE OR REPLACE FUNCTION insertarProducto(_codigo character,_descripcion CHARACTER VARYING,_precio MONEY,_stock INTEGER,_fe...
asked by 29.05.2018 / 21:44
1
answer

conditional to execute query mongo

I have the following code, and I want to know if there is any mongodb function that returns true or false depending on whether the query was executed correctly or not. public function removepopup($id){ $collection = $this->connect()->...
asked by 24.05.2018 / 10:15
0
answers

how to capture text within a python tkinter function?

I am working on a program to close the basic programming course of the university. The purpose of the program is to make the return of lost electronic objects within the U easier and safer. I am working in python and I am new to the graphic inte...
asked by 17.05.2018 / 03:58
0
answers

To be able to answer email received from form without field "for" (email_from)

I have a contact form running on my website but it lacks a detail to fix. When receiving it in my mail tray it shows me the requested fields that are Names, telephone email and message of the client. But when I'm going to answer it, I do not get...
asked by 05.05.2018 / 03:44
1
answer

Problems when calling a function in C

Within this program, which is shared memory in C, I have an error in compiling it, it tells me that there is an implicit statement inside the switch that is where I send the function, does anyone know how I can solve it? #include <stdio.h&g...
asked by 13.04.2018 / 02:23