Questions tagged as 'tipagem'

2
answers

What is the BoxT statement for?

I was checking out the Hack documentation . I know this language is a modification of PHP to introduce type checking. I saw that they put this example to demonstrate the use of classes, I think it has to do with defining primitive types....
asked by 17.06.2016 / 20:56
1
answer

How to identify the type of data that the user typed in a prompt or input?

I started studying JS for 3 weeks and I'm really apprentice ... My greatest doubt is that I do not know an operator or command to identify and condition the value of the type of data entered by the user, for example: var userValue = prompt(...
asked by 19.09.2014 / 21:48
1
answer

Algorithm C. Why does the "why" string return and do not return numeric values?

I wrote an algorithm in C to write on the screen ordered pairs of a function, with input of x integers. int main(int argc, char *argv[]) { int x,i; x = -1; do{ system("cls"); scanf("%i",&x); if(x>10...
asked by 20.08.2017 / 22:31
3
answers

Programming logic question C

I'm learning how to program in C using André Backes' Complete and uncomplicated C language book. You have an exercise that I can not get the answer to. Follow the Statement:    (The exercise has been slightly changed.) Make a program that rea...
asked by 29.04.2017 / 03:25
1
answer

Converting data into types such as int and double

I'm having trouble converting data from a database, for example I'm running a query like this: carteira ca = bc.carteira.FirstOrDefault(obj => obj.cpf == cepf && obj.codigo == cod); I get data information of type ca.valor ,...
asked by 02.06.2014 / 23:32
1
answer

When to use lists and when to use tuples? [duplicate]

What is the difference between list and tuple types in Python and when should I use each one?     
asked by 26.03.2017 / 01:27
5
answers

What is the difference between string vs string?

I'd like to know what the actual difference is between String (upper case s) and string (lowercase s). Apparently the two have the same goals, but which one is "better" to use?     
asked by 01.02.2014 / 11:31
1
answer

I need to create a Compound dataset using HDF in C #

My application contains a list of BasicVariables and within each of the BV's, I have a list of objects of class OPC_UA, which have 3 attributes, a datetime (which I will convert to a timestamp), a float and an int64, I need write this list of OP...
asked by 11.06.2018 / 18:41
4
answers

Mathematical division needs

On the Windows calculator: 9 / 3,0001 = 2,999 ... In my program: 9 / 3,0001 = 3; I would like to get this level of precision using C. See excerpts from my program: double op(double num1, double num2, char c) { if(c == '/')...
asked by 25.10.2014 / 18:23
3
answers

How to read only integer numbers in scanf?

For example, in the code: int main() { int x; scanf("%d", &x); printf("%d", x); } If I type "A", it automatically converts to integer or just closes the program (the two have already happened to me). there, in the c...
asked by 15.10.2018 / 21:31