Questions tagged as 'tipagem'

2
answers

What is the difference between getRating () and getProgress ()?

According to the documentation, getProgress returns the progress bar of the rating bar, while getRating returns the number of stars in the rating bar. So in general terms getProgress returns a double value while getRating returns an integer...
asked by 17.12.2018 / 15:34
1
answer

What name is given in C # when we use the expression "new {}"?

When I saw the use of the expression new {} I remembered Javascript, where I use new Object and {} are equivalent. Just for study purposes, I made some comparisons, to see if Csharp followed the same idea as Javascript, b...
asked by 08.01.2018 / 16:31
1
answer

Why does FloatToStr exist if Delphi does not have the Float data type?

Reading about the Delphi / Pascal data types, I realized that there is no type Float , however, there is the FloatToStr() function, as well as StrToFloat() . In this case, could you use a floating-point variable of any kind...
asked by 31.07.2018 / 22:45
1
answer

Is it possible to use DOUBLE data type on 32-bit systems?

The DOUBLE data type is a 64-bit floating point, but can it be used on 32-bit systems without any problems?     
asked by 22.08.2017 / 19:15
1
answer

Duck type in Elixir

[5,a,15] = [5,10,15] Making this type of assignment in Elixir is duck typing  or are they different concepts? I ask because I was left with the doubt since on the left side it is declared a "variable" without an explicit type or a di...
asked by 05.11.2017 / 02:44
2
answers

Find out if a control is a button

I have the following code to change the color of the buttons that are in a panel: private void mudaCorBotao(Button bt) { foreach(Control b in Panel_esq.Controls) { if (/*[O que devo colocar aqui?]*/) { b.Bac...
asked by 23.04.2017 / 01:43
2
answers

Double wrapper initialization with int does not compile

I want to understand why this boot does not work: (1): Double d = 10; // Não funciona I understand that Double is a wrapper , the compiler should convert this line to: (2): Double d = Double.valueOf(10); // Funciona...
asked by 29.05.2016 / 17:35
3
answers

Incompatible types?

I'm passing 3 parameters: a vector with the names of 30 cities, one with the x coordinates of the respective cities and the other with the y coordinates. I need to print on the screen the cities to the north, south, etc. I'm still testing. I...
asked by 07.12.2014 / 02:37
2
answers

How to do a cast of a class typed in C #?

I have the Carro class that inherits from the Objeto class and another CarroTeste class that implements the abstract class TesteBase which implements the ITeste interface, both ( TesteBase and ITeste...
asked by 16.07.2015 / 17:03
2
answers

Trying to understand Java print

Look at the code below; public class Dois { public static void main(String[] args) { int a = 3; int b = 4; System.out.print(" " + 7 + 2 + " "); } } The result is 72, but I thought it was for the result to...
asked by 14.10.2018 / 13:06