Category "function"

How to define and call functions in c++?

I am new to c++ and I am wodering how to properly define functions? Right now I am receiving the following errors: Severity Code Description Project File

pass an address to a function in vba function

see the basic function structure function test (first as range) whatever I do inside end function calling the function and first is the address of the first c

Python multiplication table school exercise

I have a school exercise, but im struggling to understand how to do the multiplication table. Could someone please help me? So depending on the number and colu

Can someone explain to me what is the details of line 5 return numberList[index] + sum(numberList, index - 1);

Can someone explain the syntax process? How line 5 will be implemented and what is the sequence for these three elements and what is the value each time in the

How can I repair this error that occurs occasionally when my code is running?

Sometimes the code runs till the end without any errors while other times it stops in the middle and gives me this error Thread 1: EXC_BAD_ACCESS (code=EXC_I386

i can't seem to understand a C code to sort a linked list of data

i have been given a code to sort a linked list that contains links (we call them maillons in french, sorry i don't really know how it's called in english) of Op

How show mysql query without NULL?

How show mysql query without NULL? I want to show my quary where "LAG(title) OVER(PARTITION BY emp_no)" IS NOT NULL, I need only titles.emp_no = "LAG(title) OV

PHP PDO Sort Function error codes: Xdebug has detected a possible infinite loop, and aborted your script with a stack depth of '256'

i am trying the sort operation in function but i am getting the error given below. I'm leaving the function codes below error: Xdebug has detected a possible in

How to change the final array to the front in JavaScript?

The case is: function trocaPrimeiroEUltimo(array) { array.array[0] array.array[array.length - 1] return array } I did this way, but it didn't work.

Why doesn't typescript warn about the return type in this function?

For example, I have an onClick handler on a <div> tag. The handler should expect a return type of React.MouseEventHandler<HTMLDivElement> | undefine

How to use variable declared inside function outside of it?

How do I use a variable that I declared inside a function outside one. Do I have to declare a function first and then use it? Using global doesn't work, so what

In C, I'm having trouble getting an Index sorted High to Low and vice versa

I'm working on a project involving a preset array: primaryArray[8] = {8, 4, 2, 16, 32, 124, 64, 256}; Im calling a function before the main, its not quite worki

How to call a function once in a while loop

I have a robotic code, that does the following: camera starts processing and taking images Mounting Holes (hough transform) function detection is activated The

Im having trouble with this assignment that has me write vectors and arrays to a file

So in this assignment I have to have one function that has the user enter the vector which is the driver name and then they enter the drivers 4 points. That fun

Why Linking.openURL fires automaticaly without TouchableOpacity?

i have a problem with function in React Native. I checking if the String is e-mail, text or phone and returns appropriate object, e.g Linking.openURL(mailto:${p

Create python function from script

Struggling to get this code to work as a function. It needs to separate values within a particular field which contains + symbols and create a new row which has

In a Postgres function, how to return the result of a query that is stored in a table?

Initially let me explain the whole situation. The database is Postgres 13. I need a "dynamic selection" In the first place... The tables I work with have many c

getResult is Undefined

I can't seem to find out what is creating this undefined error in my basic rock paper scissor game it gives me to results instead of just one I'm trying to unde

How can I make a def function with my "if" statements?

We were asked to make a function named temperature conversions that accepts an integer argument called temperature, a secondary string parameter called input un

Why don't we have to declare static functions the same way we need to declare static variables in c++?

Consider the following struct: struct Toto { static int a; static void Print() { std::cout << a; } }; And the following main functio