Questions tagged as 'class'

3
answers

How to declare a list of objects and then assign data? C #

I tried to find information about it and found that I can declare the list as follows: var list= new List"object"; but I do not take well the different types of syntax I find from examples on the Internet. How should I declare the list?...
asked by 17.05.2018 / 16:05
1
answer

How can I put a variable of the same class as the class I am defining?

I'm doing a problem of A * and I need to save the father and then print the route. Everything works correctly until I ask the parent node in the printing method and it gives me this error:    "error.EXC_BAD_INSTRUCTION (code = EXC_I386_INVOP,...
asked by 15.12.2017 / 12:00
3
answers

Add class with php [duplicate]

I have a link. <a href="contacto.php?id='uno'" class="uno">contacto</a> I want to know if I can add another class to that link with php, for example. <a href="contacto.php" class="uno active">contacto</a> How...
asked by 20.08.2018 / 18:34
1
answer

Observer type bool C ++

I'm trying to solve this exercise: The Dice class manages the launch of 2 dice. A) The constructor receives two optional parameters with the initial value for the given 1 and the given 2 respectively. If the dice do not receive an initial...
asked by 25.08.2018 / 13:33
0
answers

Magento 2, checkout error Copy does not exist

At the time of doing the checkout the page of luma shows me this: When I go to the logs specifically in exception that is where it sends me, this line of error appears:    [2018-06-06 16:57:06] main.CRITICAL: Class Magento \ Framework \...
asked by 06.06.2018 / 19:03
1
answer

Problems when storing strings of a class in an array

My program consists of a menu that has: Register. Unsubscribe. Modify. Show. Exit. And the Person class with its constructors and methods. The Person class is something like this: Class Persona{ private: char* dni; char* nomb...
asked by 03.05.2018 / 12:46
1
answer

How to get classes that are not repeated from a Nodelist?

Hi, I would like to know how I can with PURO Javascript to obtain names of CSS classes and be able to show them in the console without repeating names from a list of nodes where I obtain the elements looking for the first class. Elements with cl...
asked by 17.11.2018 / 17:44
2
answers

How do I make a variable of the same type of class in Javascript?

I want to make a simple list linked with javascript and for that, I need to make a variable of the same type of the class, in Java I did it like this: class Nodo{ public char datoNodo; public Nodo sgte; public Nodo(char dato){...
asked by 09.08.2018 / 23:07
1
answer

how to do show. () to more than one class at a time

Hello, I'm trying to do the following: $('.1','.btn').show(); I want to make visible only the div's that have those two classes together like this: <div class="1 btn"> I've tried doing it like this: &...
asked by 29.01.2018 / 00:12
3
answers

My class does not find my layouts or activities android

My application is connected to a firebase server, and I have created a class to check if the data has been changed and, if so, go to a specific layout or activity: package com.example.gerard.presentacio; import com.example.gerard.presentacio.R...
asked by 05.12.2017 / 23:22