Questions tagged as 'int'

0
answers

Doubt over C # int [-1,1]

Good person, I made a script where it exchanges objects with setactive in int connected to onclick buttons 1,2,3,4 and so on I need help from you to make the exchange of the int to -1,1 in the onclick buttons the idea would be like this...
asked by 09.10.2017 / 03:10
1
answer

Compare integer and pointer

Well, I have a question, I'm trying to copy a line to a file but I get an error that says I can not compare an integer with a pointer, can anyone help me? The error is in line ch = getc(file1); and while(ch != EOF) #include <s...
asked by 14.06.2017 / 21:00
0
answers

Parameters between fragment and activity

I have an activity with a fragment inside, however I want to pass the parameters in the fragment when I change activity, what do I do?     
asked by 27.04.2017 / 16:06
1
answer

ASCII value for char or Int value for ASCII C

I need to find a value found by a rand in a file, I'm having a lot of problems because rand returns an integer and to search for a character in a file, the fgetc returns an integer corresponding to the ASCII of the character...
asked by 02.11.2015 / 20:30
2
answers

Whole values in the terminal

I need to sum the odd numbers between 2 values. In online compilers the code works as expected, adding up any odd input values and giving the expected output, but in my terminal (4.15.0-34-generic) when putting, for example, 6 and -5, the output...
asked by 04.10.2018 / 12:58
1
answer

invalid operands to binary% (have 'float' and 'int') [closed]

When compiling the code I get the error in the title of the question for the line res100=notas%100; How to solve? Code: float notas,N100,M1,M050,M025,M010,M005,M001,res100,res2,res1,res05,res025,res010,res005,res001,N50,N20,...
asked by 15.10.2018 / 23:55
1
answer

Am I validating twice?

Hello, I have a Select on a form with only integer values. Upon receiving this information in PHP, I make the following validations: BecauseI'malreadyusing(int)online297andline302,ismyfirstvalidation(atline292,with!is_numeric)redundant?In...
asked by 18.07.2016 / 07:42
1
answer

How do I make a comparison of a character in the range of an alphabet?

The question is:  1) Help the university to assemble the divisions of the programming lab. To do this, write an algorithm that reads the name of the student and say in which division he is respecting the rule below: -children whose name begins...
asked by 21.03.2017 / 01:56