Questions tagged as 'operador'

4
answers

Logical operator or

What am I doing wrong? In Javascript I am using the logical operator or in:    Use the logical operator or in variables 'foo' and 'bar' and assign it the   result to the variable disjunction. But it's not working for me; The code I use is...
asked by 02.02.2018 / 04:51
3
answers

error: type 'FirstClass' does not provide a call operator

I'm trying to pass an object as parameter but I get an error that I did not provide a call to the object. I want to use the second definition of the constructor, so I pass it as a parameter to be able to enter the variables by default. Thi...
asked by 13.03.2017 / 21:48
1
answer

Operator ~ NOT in JavaScritp (basic usage examples)

How to understand with simple usage examples the BItwise NOT operator? understand it as if you would like to know someone who is learning about bit by bit operators in Javascript Thank you!     
asked by 14.09.2018 / 02:20
1
answer

Doubt about operator in c ++

I'm starting to work with bmp images in c ++ and there is some operator that I can not understand how it works, basically these are: string str string #include <cstdio> #include <cstring> void ocultar(BMP & bmp, char * str){...
asked by 11.05.2017 / 12:50
3
answers

Ternary operator '?'

The ternary operator ? java is giving me error using it in the following way: ArrayList <String> titleTabs= new ArrayList<>(); ArrayList <String> countTitleTabs= new ArrayList<>(); public ViewPagerAdapter(ArrayL...
asked by 30.01.2017 / 13:20
1
answer

Why does the operator cause problems when comparing two conditions in a do while in java?

For example: import java.util.Scanner; public class PruebaDeMetodos { static Scanner teclado ; public static void main(String[] args) { System.out.println("Escoje las opciones 'a' 'b' 'c':"); boolean anulado=false;...
asked by 14.07.2017 / 03:41
2
answers

Operator overload + in C ++

I can not get the operator +, how can I overload the operator + to add the value of two dice and return an integer with the result? This is the class: class Dado{ private: int dado_; public: Dado(); Dado(int valor); inline int ge...
asked by 23.08.2018 / 23:17
2
answers

If statement does not recognize the operator ||

I have a problem I have the following code. $model = new Crud(); $model->select = "a.idAplicacion, a.idPaciente, p.nombres, p.apellidos, a.peso"; $model->from = "aplicacion a JOIN paciente p ON a.idPaciente = p.idPaciente JOIN unidad...
asked by 15.11.2018 / 18:54
0
answers

ERROR ... (The Xor Operator is not defined for char and char types) VB.NET

I have an error in a class as shown in the photo ... how can I solve it ... It would be very helpful     
asked by 25.11.2018 / 01:49
0
answers

Mysql AND operator problem in PHP

I have this query that works perfectly in MySQL: select maestro from destajosetapas WHERE idetapa = '18' AND iddestajo='15241' By collecting the results PHP gives me NULL , but if I put: select maestro from destajosetapas WHERE idet...
asked by 19.04.2018 / 23:00