Questions tagged as 'return'

1
answer

Calculate with Javascript and return in html

So people, I just need to get an HTML information and return the result of the calculation, but I could not. <html> <head> <title>Calculadora</title> <script language="javascript" type="text/javas...
asked by 14.07.2016 / 22:20
1
answer

How do I get the return of a method that depends on another within a class?

I'm using a class called Semelhantes which will have 2 methods. The features takes 3 characteristics of the current property through id . resemblant mounts a query that aims to bring real estate that looks li...
asked by 06.01.2016 / 23:28
2
answers

Which way is more correct not to let a function

Well, I could not find a more specific title for my question, my question is simple. I'm not going to decorate much. Come on. Which of these two are correct: No return false ; public static function select($query, $array) { i...
asked by 22.07.2018 / 21:46
1
answer

Return Result of an IF executed by the Command Prompt (CMD) in C #

Hello, I'm trying to get a return from an IF line of the Command Prompt (CMD) with Visual Studio 2015 in C #, but I'm not getting it. The following code executes the CMD, inserts the directory path containing a C ++ (.cpp) file, and using the...
asked by 29.08.2018 / 14:59
1
answer

Pointer return that points to a local character vector?

#include <stdio.h> char *local(void); void main(void) { char *ponteiro = local(); printf("%s\n", ponteiro); /*Saida = - (*/ } char *local(void) { char nome[12] = "programador"; char *ponteiro = nome; return ponteiro;...
asked by 09.05.2018 / 05:29
2
answers

Function that returns vector

How to return a vector inside a function? And what do I call it in the main? This return in case: (return vector;) #include <conio.h> #include <stdio.h> #include <stdlib.h> float UK (int mat[4][4], float w[3]){ float *vet...
asked by 22.04.2018 / 00:19
1
answer

Is there any way to modify what the module will return in Lua?

I want to know if it exists since I have a data storage system, in which the data is in a table and when the player enters, that data is stored in a module script (The only one that returns something) . The problem is that you can not keep typin...
asked by 14.04.2017 / 01:08
1
answer

Function return type for a linked list

What kind of return to use in a threaded list? For example, enter at the top of the list. void inserir(pessoas **pessoa, int valor) No return (% with%). Or return a pointer from the list. pessoas* inserir(pessoas **pessoa, int valor)...
asked by 07.12.2016 / 15:29
2
answers

Returning an object. Any code smell here?

I thought of the following public method: public RespostaDeArme armar(); The class RespostaDeArme would look like this: public class RespostaDeArme { private final ResultadoDeArme resultado; private final Set<Integer>...
asked by 16.02.2017 / 19:07
1
answer

Handle the return of a line from a null Datatable

I am accustomed to developing in VB.NET and am starting a new project in C # .net with VS2013. I noticed that in many things there is an expressive difference in syntax and I came across an issue. How do I handle null values of a Datatable, afte...
asked by 31.12.2014 / 03:39