Questions tagged as 'operadores'

1
answer

C ++ problems with overloading operator + (undefined reference to 'operator + (...)

I'm having trouble overloading the + operator in C ++. Anyone have any idea what's wrong? To perform the unit tests I'm using googletest in Ubuntu. (I wanted to do this to make the code cleaner) Code: ---- vector.cpp ----- vector<d...
asked by 22.02.2016 / 15:20
3
answers

Perfect square, not so perfect

I need to know if the sum of two numbers is a perfect square, I thought of adding the two and taking the root and then checking if the rest of the division by 1 is greater than zero, except that the operator (%) only works with integers and sqrt...
asked by 03.10.2015 / 22:43
1
answer

Arduino - invalid operands of types 'double' and 'double' to binary 'operator ^'

#include <DHT.h> #include <math.h> #include <stdlib.h> #include <stdafx.h> #include <iostream> #define DHT1PIN 2 #define DHT2PIN 3 #define DHT3PIN 4 #define DHT4PIN 5 #define DHT5PIN 6 #define DHT6PIN 7 #define DHT...
asked by 11.08.2014 / 20:04
1
answer

How to do arithmetic operations using directly binary in C

I'm a beginner so there may be things wrong here. I need to do thousands of calculations with data (decimal numbers float) of several giant csv files, so I figured that using the binary in the ieee754 standard would avoid conversion and this...
asked by 21.10.2018 / 18:46
1
answer

JavaScript: Add object inside an array of objects

I have: var options = { title: 'Titulo', width: largura, height: altura, vAxis: { title:"Porcentagem % em vendas", format: 'decimal' }, hAxis: { title: "Seleção de clientes - Comutativa", } }...
asked by 09.10.2018 / 20:37
0
answers

How to compare strings in C [duplicate]

Hello, I would like to know how Strings compare to C with the "==" operator. I program in Java, and to compare Strings, we use the "equals" Example "myAttribute.equals (" Text to be compared ")" In C language, can I use the "=="? When can I us...
asked by 31.08.2018 / 00:55
1
answer

What is the double exclamation before the method call in Kotlin?

I'm studying Kotlin. I noticed that, in the conversion to type int , it is necessary to put the double exclamation ( !! ). Example: var input = readLine()!!.toInt(); Generally in other languages double exclamation is used to...
asked by 05.08.2017 / 22:02
2
answers

What is the C / C ++ volatile operator?

I've seen some code in C / C ++ statements like this: volatile int i = 0; I would like to know what the volatile operator is and in what cases I should use it.     
asked by 22.03.2014 / 15:16
1
answer

What is the '...' operator in Javascript?

I've seen some uses of ... but I'm not sure what it's like. Example: var a = [1, 2, 3]; var b = [4, 5, ...a]; How do you call this operator and how does it work?     
asked by 03.01.2018 / 14:30
1
answer

What is the '...' operator in Javascript?

I've seen some uses of ... but I'm not sure what it's like. Example: var a = [1, 2, 3]; var b = [4, 5, ...a]; How do you call this operator and how does it work?     
asked by 03.01.2018 / 14:30