Questions tagged as 'return'

0
answers

Pass start and end of a vector to the sort function using c ++ method overload

I want to access using overload using node which is an object of the base class method getInicioVetor and getFimVetor within the child class, I wonder if there is a way to do this? I tried it just that it did not work. static boo...
asked by 26.09.2018 / 03:58
1
answer

Javascript: Function is not returning the correct value [duplicate]

What could be wrong with this function? Where alert is, the correct result is coming, but it is returning 0. function AprovaCotacao(numForn) { var forn_aprovado = $("#cot_fornecedor" + numForn).val(); var id = $("#cot_id").val...
asked by 22.06.2018 / 03:06
0
answers

C code only compiles once and then closes

I have a code that I am writing in C, and then a problem is constantly happening. I do not know if it has anything to do with memory allocation. I have a function: struct elementodos interpretar(char* element){ struct elementodos separ...
asked by 13.12.2017 / 17:45
0
answers

Does not access the OnResponse () method retrofit android

I am making a call from a post method that returns me an id generated through retrofit 2, however, in return, it never accesses the onResponse method, I already tried to use other objects and formats, but none worked. Below the service return:...
asked by 04.08.2017 / 19:52
1
answer

How to return or extract more than one value from a function?

integerPower( int y ){ int base2; int base3; int base4; int total; base2 = pow( y , 2); base3 = pow( y, 3); base4 = pow( y, 4); When I call this function (I did not type return because that's the question) I...
asked by 13.12.2016 / 00:44
2
answers

Error: Not all code paths return a value

The following is the error:    "CustomerLogon (string, string)": Not all code paths   return a value class Conta { #region atributos public String nomeCliente { get; set; } public String numAgencia { get; se...
asked by 12.07.2017 / 01:20
1
answer

Php equal functions return different values

I have this function: function login($username, $password) { $user_id = user_id_from_user_name($username); $username = sanitize($username); $password = md5($password); return (mysql_result(mysql_query("SELECT COUNT('user_id')...
asked by 17.04.2014 / 19:15
1
answer

Output a void function

I'm programming a word hunting and a problems in the void function is making it difficult. In the code I use functions to scan the array in all directions and returns me the start and end coordinates or exit the function and start reading in ano...
asked by 30.09.2016 / 04:22
2
answers

Need to declare variables in a Javascript function

Hello. I'm starting to learn programming logic. When I create a function in Javascript, I declare and request to return its value. function exemplo(teste){ var saida = teste + 4; return saida; } Well, w...
asked by 03.12.2017 / 03:22
1
answer

sql search with higher and lower end date

My code should return values from the database, related to the current day (today), but only related to the month and day, I searched a lot but could not find something that would help me $data_atual = date("d-m"); $mostraDados = mysqli_query(...
asked by 13.10.2017 / 07:42