funções

How do I get rid of these warnings

I'm making a program that hunts a word from an array. For this I made 8 functions that scan in all regions, as I need to retu ... d 'int *' but argument is of type 'int **'| ||=== Build finished: 0 error(s), 16 warning(s) (0 minute(s), 0 second(s)) ===|

How to create structure vector within function

Good Morning! I was again recovering in the matter of algorithms, what caught me the most was structure and passing parameter ... argument is of type 'struct mercearia*' | / / = = = Build failed: 4 error (s), 4 warning (s) (0 minute(s), 0 second (s)) ===|

Vector sorting by function in C

Good Morning! I'm having trouble passing a vector to void function so that sorting is done and returned, as well as, trouble ... scanf("%i", &vetorN[i]); } OrdernarVetor(*vetorN, 5); ExibirVetor(); } What am I doing wrong?

Return and pass structure through a function in C

Good night, I have a discipline completion job in which I have to register n employees, in my code I put 5 to get faster the ... the structure to function and call it whenever the user is going to use it? Whether to register or replace the information...

Call javascript function only once

Assuming I have a button that when clicked calls a javascript function. I would like that if this button was clicked several ... call button, if he clicks again, before the call has ended, he cancels that first call and makes a new one, so successively.

Dateadd working hours-SQL Server

Guys, I have a doubt. In the query below, in the tarvencimento field, it is counting the hours normally, however, I want it t ... CASE WHEN @CONTMINUTOS < 10 THEN CONCAT('0',CAST(@CONTMINUTOS AS VARCHAR)) ELSE CAST(@CONTMINUTOS AS VARCHAR(5))END) END

How to convert scientific notation to string with full number

What php function should I use to do this type of conversion? Convert: 1.3388383658903 and+18 to: 1338838365890273563 T ... 8838365890273563); $serializado = serialize($a); How to fix this when doing unserialize($serializado)? Example in ideone

How to correctly call a function through another function in C?

I have the following functions: int testarDivisibilidade(int dividendo, int divisor); int divisibilidade3(int num); And t ... returns as true. Summarizing: As can I correctly check my function divisibilidade3 inside function testarDivisibilidade ?

How to manipulate a structs vector in an external function? Follow example

I'm in doubt on a question. The following statement follows: Implement a library control system with functions to register, ... int paginas; }; I would like to know how to pass a vector of this struct as a parameter of a function, can anyone help me?

What is the purpose of declaring a function within a function?

In Python it is possible to declare a function within another function, as shown in the following code. def foo(palavra=None ... is the practical purpose of such language flexibility? In which scenario does making use of such a tool make a gain possible?

What is the function in jQuery and what is the right way or time to use?

Whenever I go to work with jQuery I simply create: $(function() { }); Because it was the first form I learned, at first ... ); What is the right way to use? Or what is the right time to use? Why does pure JavaScript not need? What is its function?

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( ... calculated in the power of 2, 3 and 4. I tried return base2, base3, base4 and it didn't work out. Why can not this be done?

What is the difference between declaration and definition?

These things seem to be the same thing. Are they really? And assignment is different? Terms are interchangeable.

When to use recursion and when to use loops?

A problem can be solved and get the same result used a loop or through recursive calls to a function. Considering that the programming language being used has both features, How do you know when one is better than the other?

Python - ' int ' object is not iterable

Hello, I'm creating a character converter for your ascii code via a recursive Python function. However I am having a problem ... 897 which corresponds to the conversion of each of the characters to ASCII. Can anyone help me figure out where I'm failing?

Operator & E * in functions

What is the meaning of this & in front of the Matrix(my function only works with &, I'm overloading cout And also t ... [i][j] += this->data[i][j]; } return b; } void * func(){ cout<<"Teste"<<endl; }

Check if a date is valid or not in C?

I need to check whether a date is valid or not in C, and for this I will have a function called verificarData which will be p ... e of the bars, it returns as if it were a string. How can I check and return by saying if they are numbers or not correctly ?

How to use pointer and vector in a single struct in C?

I cannot run a program that needs functions to execute a procedure, this function receives a struct vector via a pointer. It ... ;media/=4; } } int main(){ struct RgAluno* Aluno[MAX]; ler(&Aluno); return 0; }

Format string / float for currency in PHP

I am doing reports in PHP and I have a value column, only that column can come values with semicolons. I need that when it co ... $ 0,49 R$ 0,15 I can't develop any function that suits me in these cases, does anyone know how I can develop this function?

* apply with three argument functions in R

I created a three argument function and want to apply it to a 200 X 3 matrix where in each row are the three arguments I need to use in the function. As a result I would get a vector of size 200. How can I do that?