All Questions

2
answers

Save the contents of an array in a .txt using PHP foreach

I'm looking for how to save the contents of an array in .txt: <?php $resul = array('hermaniribeiro', 'Ebtsama', 'BrittoOFC', 'CheesterG', 'dsolutec', 'ExpoGanSon', 'dsolutec', 'ExpoGanSon', 'dsolutec', 'BelforFx', 'kunakrec', 'YouTub...
asked on 30.09.2017 / 02:20
1
answer

How to add parameters to the EventHandler method that is added to the Click event in C #?

It turns out that I'm starting to program in C #, well, my problem is that I have a Button matrix and when I initialize the buttons I add a method in the Click event, I would like to know if parameters can be passed to the method of the event....
asked on 15.09.2017 / 21:03
1
answer

Do you doubt the inflate concept?

public boolean onCreateOptionsMenu(Menu miMenu){ MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.mi_menu, miMenu); return true; } Data this code What does inflate () really mean? I understand that the first para...
asked on 28.09.2017 / 09:42
2
answers

How do I remove a particular element from an array in javascript? [duplicate]

I have an integer array, I'm using the .push() method to add elements to it. Is there a simple way to remove an element from the array? THE equivalent of something like: array.remove(int); I must use pure javascript without framewo...
asked on 16.09.2017 / 14:35
2
answers

prime number with recursion

I do not know why this code explodes at runtime, any ideas? #include <iostream> using namespace std; bool esPrimo(int number, int cont = 1, int div = 0) { if (number % cont == 0) { div+=1; } else if (cont == nu...
asked on 09.09.2017 / 01:01
1
answer

Type Error with raise statement

I'm trying to write a very simple function that I saw in the book "Learn to think like a programmer with python": def elige_numero(): x = input("Escriba un nĂºmero: ") if x == str(17): raise('ErrorNumeroMalo', 'El 17 es malevolo...
asked on 16.09.2017 / 15:38
1
answer

I have an error "crosses initialization of 'player p3' when using the switch in C ++

#include<iostream> #include<string.h> using namespace std; class jugador{ char *nombre; float arg; char *equipo; int aux; public: jugador(char *, char *, float); ~jugador(); jugador(jugador...
asked on 21.09.2017 / 01:57
3
answers

SQL Syntax - LINQ in C #

I'm doing a small application where I need to save data in SQL Server and then view it in a Datagrid using WPF. I'm not used to LINQ but I've already done some tests but it's not very clear to me because there are two types of syntax ... Exam...
asked on 10.09.2017 / 07:37
1
answer

Combine C ++ and Python

When creating graphical interfaces with C ++ I see a world, and I have been reading the possibility of combining two languages, one of them C ++. My question is, could you do all the essentials with c ++ but the graphical part with Python? That...
asked on 04.09.2017 / 02:28
1
answer

CSS: Show glyphicon just below another glyphicon

I have this view: I would like the arrows to look both to the right of the name of the column, one on top of the other . What CSS style should I apply to the .glyphicon-arrow-up and .glyphicon-arrow-down class? .glyphicon-ar...
asked on 14.09.2017 / 11:05