All Questions

1
answer

Show image under another with hover css

How do I make the mouse pointer over an image appear with another opacity? For example: I have a div with the cover image of a movie, when I hover the mouse under the div, I would like to display the PLAY button. The only related material...
asked on 12.10.2015 / 17:10
1
answer

What is the correct way to call C # versions?

There seems to be some confusion with the naming of the C # versions and the technologies that are related to it. Is there a C # 2005? Or a C # 3.5? What is the relationship of C # versions with .Net, Visual Studio, etc.? There are books...
asked on 17.06.2014 / 18:08
2
answers

Getters and Setters can only "walk" together?

I am studying object orientation and am having some questions on the encapsulation part. For example: Class Url { private $url; public function setUrl($url) { if (filter_var($url, FILTER_VALIDATE_URL)) { $this -&...
asked on 21.12.2014 / 07:30
2
answers

How to create a vector of variable size?

In C language, is it possible to create a vector, of any type, so that its size is variable? If possible, how?     
asked on 26.09.2014 / 21:03
2
answers

What is the purpose of this language called Brainfuck?

There is a programming language called Brainfuck that has a very confusing and difficult to understand syntax. For example, to make a simple Hello World in it, you have to do the following: ++++++++[>++++[>++>+++>+++>...
asked on 18.02.2016 / 18:33
4
answers

Java: When to use interrupt vs flags?

To indicate to a thread that it should "break" its work, Java provides a mechanism known as Interrupts : public void run() { while(!Thread.interrupted()) { // Fazer algo } } // para interromper minhaThread.interrupt(); Tha...
asked on 01.11.2016 / 15:37
2
answers

What is the meaning of the asterisk (*) operator?

In C this operator is used in variables of type pointers, but in Python I do not know which way, and what the reason to use, so what is the meaning of the operator (*) in the Python language?     
asked on 02.11.2016 / 23:46
2
answers

What is the difference between Association, Aggregation and Composition in OOP?

About relationships between classes, what's the difference between Association, Aggregation and Composition?     
asked on 13.09.2015 / 20:25
2
answers

What is the difference between recursion and tail recursion?

In functional programming languages, it is said that it is possible to avoid stack overflows using "tail recursion". But what is the difference between normal recursion and tail recursion?     
asked on 05.02.2014 / 13:07
4
answers

Script returning Parse error: syntax error, unexpected end of file

When adding this method to PHP code <?php function meuMetodo($a, $b) { $c = $a + $b; if ($c > 1) { return TRUE; } else { return $c; } ?> This error occurs:    Parse error: syntax error, unexpected end of fil...
asked on 17.02.2015 / 18:29