Questions tagged as 'operadores'

3
answers

Calculate average between 3 notes

I need the user to enter 3 notes to calculate the media and report whether it is approved, disapproved, or recovered. I believe the error is in the average itself. <html> <head> <title> </title> <script type="te...
asked by 16.10.2016 / 00:41
3
answers

How to transform a bool into int?

I'm trying to do the following: if the guess value ( _TextValPalite ) is enabled then it will check if that number is not different from a minimum value and a maximum value. Ex: between 1 and 10 I can write 5, but not 11. if(_TextValP...
asked by 20.05.2016 / 14:45
1
answer

Store more than one value in a variable with &&

Can I store more than one number in a variable? For example: m= a&&b&&c&&d&&e I need to indicate which is the largest and the smallest number that the user entered, wanted a way to do this without having to t...
asked by 03.04.2018 / 16:02
1
answer

Type Object in PHP

I'm practicing some code in PHP when I come across this: <?php $a = (object) ["a" => "b"]; $b = (object) ["a" => "c"]; $y = $a <=> $b; echo $y; $v=[1,2,3] <=> [1,2,3]; echo $v; $a= (object) ["a" => "b"]; $b = (object)...
asked by 14.11.2018 / 22:26
1
answer

C ++ exponentiation operator

About a question recently posted and answered Is there any reason - historical or not - for C ++ (as well as many other programming languages) not to include an operator for exponentiation? For example, when I want to calculate 5 to 7.2 I ha...
asked by 11.12.2015 / 23:06
1
answer

Meaning of the operator? [duplicate]

What is the function of by a !! in an if for example? I know that ! by itself reverses the value of a boolean result, but I tested !! and nothing changed in the result, eg: $teste = true; if(!!$teste) { echo "é verdad...
asked by 19.01.2016 / 12:19
1
answer

What is the difference between the operators "+" and "&" when in string concatenation?

In VB.NET, there are two operators that I use in the concatenation of strings , the & and the
asked by 22.09.2016 / 00:37
3
answers

The operator module invokes special methods of objects

The biblioteca padrão do Python has the module operator , studying the same I noticed some of its functions have say "aliases" , for example: operator.setitem(a, b, c) operator.__setitem__(a, b, c) Set the value of a at inde...
asked by 29.10.2018 / 19:12
3
answers

Is it possible to use the ternary operator in several conditions simultaneously?

Is it possible to use more than one condition at a time when using the ternary operator? <?php if($ativa == 0): echo "Médico(a) Desativado(a)"; elseif($ativa == 1): echo "Médico(a) Ativo(a)"; else: echo "Informação Indisponíve...
asked by 21.08.2017 / 21:44
3
answers

Difference of null and other proposition using this null object

If I have a code, for example: if(window!=null && window.isOpen()){ //todo } If window is null , will it still try to call the second proposition or not check anymore? Because if it tries to call, then it will give...
asked by 25.08.2016 / 14:06