Questions tagged as 'funciones'

2
answers

Clear screen on Mac. Language C [closed]

I was wondering if the system(“clear”); function works on Mac or, if not, is there a different one for this operating system? Since I only have Linux to try! Thanks!     
asked by 21.05.2018 / 00:34
2
answers

How do you declare and call a function with $ in Jquery?

I have this problem .. TypeError: $.slideShow is not a function I'm trying to call a function with the dollar sign $ , but it does not work. The statement is as follows. in my index.html file .. <script src="js/script.js"></scri...
asked by 22.04.2018 / 20:55
1
answer

In Javascript. Where the default values are passed in a daughter class (extends). In "super" or in the "constructor"

Where the default values of the past arguments from the superclass (Vehicle) to the daughter class (bicycle) should be placed: class Bicicleta extends Vehiculo { constructor({numeroDeRuedas=2, tieneMotor=false}={}){ super(numeroDeRued...
asked by 30.11.2017 / 13:21
1
answer

How to use a variable that returns a return

I'm pretty clumsy with the functions, and more with the use of return . I have this code: public function addAuthor($autor, $nacimiento, $descripcion) { $sql = $this->db->prepare("INSERT INTO autores (Autor, Nacimien...
asked by 20.06.2017 / 17:25
1
answer

Mix random names and surnames in php

I have 3 arrays: $nombres = array("Pepe", "Carlos", "Jesús", "Lola", "Rosa", "Maria"); $apellidos1 = array("Martin", "Lopez", "Salas", "Mateo", "Abas", "De Diego"); $apellidos2 = array("Quesada", "Alcala", "Marín", "Suarez", "Cobos","Rios");...
asked by 23.02.2017 / 23:14
2
answers

How do I apply a function to this array

I have this array that returns the id of the images but with a wordpress function I need to apply them to each of the id that returns the array and this function will be responsible for converting them into url, each one ....
asked by 24.11.2016 / 16:49
1
answer

File.Exists does not work as expected [closed]

I use the function File.Exists(path) and the path that happened to it, it does exist, but the result gives me false . Another thing is that when I run the File.Create(path) I get the exception saying that I do not have permissi...
asked by 31.10.2016 / 13:06
2
answers

File name change script in python 3.5

I have to make a script in python 3.5 to rename the files in a folder, but the script does not run, I do not know why. Thank you for your attention: Here is the code: import os def rename_files (): # 1) Vamos a obtener el nombre de...
asked by 14.07.2016 / 18:14
1
answer

Initializers in Swift 2

Could someone explain to me in a simple and clear way the difference between designated initializers and convenience initializers? If possible, with some basic example to understand it     
asked by 08.06.2016 / 18:13
3
answers

Functions in c ++

Given a function to read a file, how can I make it so that when calling the function in the main program, it closes when the file does not exist? At the moment I have done this: int leer_correo (int cart[], int certif[], int paq[]){ FIL...
asked by 16.11.2016 / 11:49