Questions tagged as 'poo'

1
answer

Error Notice: Undefined offset: 0 when getting PHP PDO data

By using the following function I get that error, the function is used to verify whether or not there is a string in DB , if it does not remove that error, but if it does not exist I get the error    "Notice: Undefined offset: 0" I...
asked by 01.03.2018 / 21:56
1
answer

Problem redirecting from the controller

When registering a user I send and receive from the model in the following function: $respuesta=Datos::RegistroUsuarioModel($datosusuarios,"usuarios"); if($respuesta == "success"){ header("location.index.php?action=ok");...
asked by 17.08.2017 / 19:26
3
answers

Show Java ArrayList elements

I'm doing an exercise where I should do a program for a point of sale. The functionalities are to add merchandise (name, quantity, price), sell merchandise and list inventory. Each merchandise is added to a ArrayList . The problem is that...
asked by 27.11.2017 / 17:36
1
answer

Access to attributes of a structure by means of references in C ++

I have a node structure that has the following form struct Node { bool word; int frecuencia; char c; Node* arr [ALPHABET]; }; The problem is that when you print the word shows a series of garbage characters an...
asked by 14.11.2016 / 05:41
1
answer

Obtain various properties of the object

Hi, I would like to know what solutions there are to reduce an object. I have a model which is used as a return in the controller but I'm only interested in certain properties of that model. The main idea I came up with was to create an anonymou...
asked by 12.07.2016 / 10:02
2
answers

Apply to a variable of class A the value of an attribute of class B

I am with a problem in the development of a Java program, I need to set in a varibale of a class Menu the value set to an attribute of the Logica class. Logica class public class Logica { public static boolean administrador = false;...
asked by 12.10.2018 / 23:20
1
answer

Does Java have a default constructor?

In a book called "Java in depth" it was specified that when creating a class in Java it was a default constructor. But, in a question from the Android App SoloLearn it appeared that the default constructors in Java do not exist. Which of the 2 i...
asked by 16.04.2018 / 18:03
1
answer

How can I create a method that builds different objects based on a variable?

I have several models: class ModeloA { public function __construct(){} } class ModeloB { public function __construct($param1, $param2){} } And a controller to which I inject the models: $controller = new Controller($modelInstan...
asked by 15.04.2018 / 14:48
1
answer

Access objects created in another class, in what way?

I try to do the following ... In the main view MainWindow I generate as many objects ConfigNivel as I need, these objects are some views that will subsequently lodge other objects of the class ConfigNivel (other views with o...
asked by 10.01.2018 / 17:17
2
answers

How to remove an item from a list that is linked to another without losing that data in the other list?

Hello friends, I hope you can help me with this. I have this object class Player(Game): """docstring for Jugador""" def __init__(self, name, sex): self.name = name self.sex = sex self.points = 0 self.efectividad = 0 self...
asked by 02.06.2017 / 21:42