Questions tagged as 'classes'

0
answers

Javascript Function with Class

Good, I have the following code that runs a sequence of images: var setInter = null function startAnimation() { var frames = document.getElementById("animation").children; var frameCount = frames.length; var i = 0; set...
asked by 03.09.2017 / 04:24
0
answers

Transform CURL into class

I want to transform my code curl which is structural and put it in a classe , but I'm out of logic, I DO NOT WANT ANYTHING SOON , just want examples, see my class <?php $cookie = []; $username = trim(filter_input(INPUT_POST,...
asked by 21.08.2017 / 13:00
4
answers

Call static class method by static variable

In the PHP documentation , I found this code against the scope resolution operator :: <?php class OutraClasse extends MinhaClasse { public static $meu_estatico = 'variável estática'; public static function doisPontosDuplo() {...
asked by 14.12.2015 / 18:00
1
answer

How to pass structures to template class functions

I just do not understand why you're wrong. This code works. template class test{ public: struct st1{ T a, b, c; }; struct st2{ T d, e, f; }; T foo1(st1 *st); st1 *foo2(); }; template typename test::st...
asked by 24.08.2017 / 21:35
0
answers

Data input string and double

I'm in a project implementing a C ++ calculator that uses variables. So, if I define a variable x = 5, and I type x ^ 2 then it returns the value of 25. For this, I have to store the variable name and the corresponding value. The user would type...
asked by 12.08.2017 / 15:22
3
answers

How do I get a specific element from several of the same class via jquery?

Well, this is probably an extremely simple thing, but I'm trying to figure it out: Assuming a code <input type = "text" class = "campos" value = "texto1"> <input type = "text" class = "campos" value = "texto2"> <input type =...
asked by 31.05.2017 / 18:48
1
answer

Insert class in PHP does not work and shows no error

I have the following code in php : <?php class Users extends DB { private function verifyUser($email) { $select = self::conn()->prepare("SELECT * FROM 'users' WHERE email = '{$email}'"); $select->execute(...
asked by 22.05.2017 / 17:24
1
answer

Problem with Classes and Variables in java

I created a class, inside it I want to call some methods but it has to be what is typed inside the JTextPanel, does anyone know how to do it? This is my Choice class: public class Escolha { public static String hey; //NAO EXISTE NO CÓDI...
asked by 28.05.2017 / 01:24
1
answer

Access a file using Properties

I'm working with a method that takes an object from the Properties class as an argument: public static void main(String[] args) { //Properties props = new Properties(); Properties props = new Properties(); props.setProp...
asked by 25.05.2017 / 05:25
1
answer

How to use the Search Bar with the class person - swift 3

Good morning .. I have the class person class pessoa { var nome : String = “”; var idade : Int = 0; var foto : UIImage!; } extension pessoa { class func Gerar_Registros(pQtd : Int) -> Array<pessoa> { var v...
asked by 20.04.2017 / 17:19