Most voted "parameters" questions
Parameters are a type of variable used in the subroutine to refer to the data provided as input to the subroutine.
Learn more…208 questions
Sort by count of
-
0
votes3
answers50
viewsHow to declare a function that has calls with quantities of different parameters?
I have a function that is called every time the input element is in focus, only the calls are made with a number of different parameters. How to declare the same function with passing variable…
-
0
votes3
answers95
viewsPass Enum value per method parameter
I have a value that stores the status of an element. For example: 1 - sending 2 - Cancelled 3 - Error. The value that will be saved in the database is the numeric value. I have a method that sets…
-
0
votes0
answers109
viewsHow to pass parameters to a Django url using javascript
I am new to the stack overflow platform and also in web programming, I am trying to build a program for restaurant. In my views, I sent two models of Django (Product and Table), these tables have no…
-
-1
votes1
answer490
viewsRead the elements of a struct in another function
I need to access data from struct in my job CalcN, how should I proceed? int main(){ int calcn(); struct user1{ string Nome; int Dnx; int Nxhu; }; struct user1 x; x.Dnx = 4; x.Nxhu = 3; int…
-
-1
votes1
answer739
viewsCreate Function to update column
I need to update a column according to the contents of the other two columns, for example, I have two tables, the table suprimentos and the table estoque, Table supplies codigoSuprimento…
-
-2
votes1
answer88
viewsWhy does a variable passed to function not keep the changed value when it exits the function?
I want the variables latitude and longitude to be updated, but only the variables lon and lat are being changed. I cannot add latitude = latitude - 1 or longitude= longitude + 1.…
-
-2
votes1
answer38
viewsHow to change the value of a variable that is within a function through another function?
I have seen similar questions here in the OS, but I still can not solve the following situation, where I have the function below that is inside an external script: function updateScript(marcador, a,…
-
-4
votes1
answer95
viewsWhat is the correct way to insert a necessary data into a constructor in PHP?
How should I place the parameters inside the constructor’s parentheses? I tried as follows as seen in videos but has the following error: OBS.: I am using the terminal, I am using the file…