Questions tagged as 'tipagem'

2
answers

Primitive type int () in Python

I'm a beginner (1 semester of TADS), the maximum programming I saw was programming logic and now I started studying > Python . In the Python course of Video Course he taught that the primitive type int () should be written as: n1 =...
asked by 27.03.2018 / 02:41
2
answers

Custom typing

   According to DOC Type Manipulation , the allowed conversions are: (int), (integer) - molde para inteiro (bool), (boolean) - converte para booleano (float), (double), (real) - converte para número de ponto flutuante (string...
asked by 14.11.2016 / 16:17
3
answers

Temperature converter

When I type the temperature in Fahrenheint the program returns 0 as a result, where is the error? #include <cstdlib> #include <iostream> #include <conio.h> #include <string.h> #include <math.h> using...
asked by 26.02.2018 / 14:27
1
answer

Division always resulting in zero

Alpha result is only returning 0. Why? package javaapplication4; public class MediaMovelSuavizaçãoExp { public double CalculoPrevisao(double[] valores){ double[] values = new double[valores.length]; //Calculando o valo...
asked by 04.11.2017 / 18:15
2
answers

What is the correct way to choose the types of columns? [closed]

I always see tables as follows. Ex: CREATE TABLE posts ( id int(11) NOT NULL, titulo varchar(255) NOT NULL, autor varchar(255) NOT NULL, conteudo text NOT NULL, data varchar(11) NULL, ) ENGINE=InnoDB DEFAULT CHARSET=utf8;...
asked by 18.12.2016 / 14:13
2
answers

Modifiers int, unsigned and signed in C language

Algorithm "handle age": // idade deve sempre ser positiva, por isso vou usar unsigned unsigned int t1; printf("Digite sua idade:"); scanf("%d", &t1); printf("Idade: %d", t1); Doubt: Even though I enter with a negative value, 2 printf...
asked by 21.10.2017 / 02:39
1
answer

How to get the exact value of the division with the decimals after the comma? [duplicate]

I need to do a percentage calculation, but I am not able to recover the exact value. Example: int valorUni = 8; int valorTotal = 116; double result; result = (valorUni / valorTotal) * 100; //Resultado esperado: 7,547169811320755 //Resu...
asked by 08.11.2018 / 14:08
1
answer

How to break strings in more than one row without concatenating? [duplicate]

var str = 'foo bar foo bar foo bar foo bar foo bar foo bar' + 'foo bar foo bar foo bar foo bar foo bar foo bar' + 'foo bar foo bar foo bar foo bar foo bar foo bar' + 'foo bar foo bar foo bar foo bar foo bar...
asked by 22.09.2015 / 19:26
1
answer

How is the super signature function checked

The super() function is for calling the parent constructor and checking for proper signatures. public class Pessoa { private String nome; private String endereco; private String telefone; private String cpf; private...
asked by 23.02.2017 / 02:28
2
answers

XML for DataTable

I've been researching how to pass the data contained in an XML to a DataTable and found the following response . Doubt: In doing this, is the theDataSet.ReadXml(theReader); method able to identify the data types in XML? Or w...
asked by 01.03.2017 / 15:14