Questions tagged as 'tipagem'

1
answer

Error in the average calculation of a student record

printf("Nota 1: "); scanf("%.1f", &alu[n].not1); printf("Nota 2: "); scanf("%.1f", &alu[n].not2); alu[n].media = (alu[n].not1+alu[n].not2)/2; // o erro acontece NESSA LINHA    invalid operands to binary + (have 'float *' and 'float *'...
asked by 02.11.2017 / 21:40
1
answer

Division does not generate the expected result

When I do the split of mul / total_filhos_mul the variable mul is zeroed, if I do not do this division it gets the correct value. What could be happening? #include <stdio.h> int main(){ int hab,i=0,hom=0,mul,sal_men...
asked by 09.11.2017 / 16:31
1
answer

Error: incompatible types when assigning to type 'char [200]' from type 'char'

When I try to insert char motorista , an error appears:    [Error] Incompatible types when assigning to type 'char [200]' from   type 'char' Code: #include <stdio.h> #include <stdlib.h> #include <locale.h> typed...
asked by 03.03.2017 / 15:24
3
answers

How to make an integer store a 12-digit number?

I need to find the largest prime factor of the number 600851475143. Because it is a very large number, I can not store it in a variable of the normal integer type. The code I made to find the largest prime factor of a number is this: #in...
asked by 13.09.2015 / 05:59
1
answer

Get Type from a class without instantiating it

I need to get the Type of a class without instantiating it, I tried to do this: variavelQualquer.Type = new ClasseA().Type; // Type é uma variável pública que guarda o valor do método GetType() But so an instance is still created (se...
asked by 18.07.2015 / 02:44
2
answers

Decimal places in JavaScript

What kind of variable can I use to generate the maximum number of decimal places in JavaScript? Eg: 1.9871975109731928479128471023789182479182471209381290481284 If possible, logical =)     
asked by 11.03.2018 / 20:32
1
answer

Why is a the value of an input type number and a string not a number?

I am wrong or if I get javascript with the value of an input type number will it be a string and not a number?     
asked by 12.08.2017 / 00:50
1
answer

"A data type is an abstract concept defined by a set of logical properties." - What does this mean?

I'm reading the book "Data Structures Using C , and one of the things the book explains is that a set of bits has no intrinsic meaning, and that the meaning of a given set of bits is given to this set from the way it is interpreted, so the same...
asked by 27.02.2017 / 04:23
1
answer

Invalid Data Types

I am trying to create a table in my database, however it is giving error of invalid data types Script from my table: create table Venda ( cod_Venda number(5)not null, DataVenda DATE, Hora TIME, cod_Comanda number(5)not null, const...
asked by 17.10.2016 / 00:18
1
answer

What is the difference between Int32 and int in C #? [duplicate]

In C #, using String or string , Int32 or int , among others, has no difference, in theory. Does anyone know if this difference has any impact on the performance of highly complex applications?     
asked by 10.07.2015 / 21:08