Questions tagged as 'operadores'

1
answer

How to stylize an element that is not a child of the element used in the selector

I have the following code, where I want to, when clicking on toogle (which is a input[type=checkbox] ), another element, which is a class of another div, below, is stylized. In the code that follows, I make an attempt using the general bro...
asked by 02.10.2018 / 05:56
1
answer

Doubt over iteration with multiple parameters

This loop realizes Log_base_2 of an integer value, at the end the result is available in the variable i . Why does a shift of the form valor >> 1 have no effect compared to valor = valor >> 1 which by the way...
asked by 29.04.2017 / 04:30
1
answer

Lvalue required as left operand of assignment

I get this error    lvalue required as left operand of assignment in the code if (a*a = b*b + c*c) { printf ("TRIANGULO RETANGULO\n");}     
asked by 18.05.2017 / 00:39
1
answer

How to pass the class (Test2 test2) as reference in the ("super") C ++ constructor?

Based on this response In C ++ which the command corresponding to super () of Java? Class Teste2{ int x; int y; public: Teste2(int x, int y){ . . . } } class Testando{ Teste2 *teste2; public: Testando(Teste *teste2) {. . . . class T...
asked by 27.03.2016 / 21:51
1
answer

Mysql - Reading data in a string

There is a Cost Center table called "cost" in it, it contains IDs (field "code") that you would like returned in a SELECT. The however is that the data needs to be compared to a comma-separated string, which are the values that I need to select....
asked by 25.02.2015 / 22:21
1
answer

Problem to split variables in PHP

I'm having trouble with a page in php. Whenever I put the following code to split two variables stored in arrays $dj_cv_at[percentual][$i] = ($dj_cv_at[concluida_c_imp_total][$i] / $dj_cv_at[concluida_total][$i]) * 100; As a result, the pag...
asked by 07.08.2018 / 20:56
1
answer

Utility of coercion operator reinterpret_cast

What is the coercion operator reinterpret_cast ?     
asked by 12.08.2018 / 17:40
2
answers

Convert power

I have a function format(input) that transforms the code quotation of a numeric expression, to be in a more readable form for the user with unicode characters. e.g. "3 * 2 + 1 - 5 / 2pi" -> "3 × 2 + 1 - 5 ÷ 2π" However, w...
asked by 27.09.2017 / 04:09
1
answer

What does it mean to say that an expression suffers a short circuit?

In documentation of PHP, about operators says:    // foo () will never be called because the entire expression is short-circuited . What does it mean to say that the whole expression is short-circuited? What happens to the script at...
asked by 21.03.2017 / 14:13
2
answers

What does the "=" operator mean?

I was seeing some solutions in JavaScript and in one case I saw this command line: return args.reduce((s, v) => s + v, 0); . But I do not know what the => operator means. What's his role?     
asked by 21.02.2016 / 01:09