When I studied Pascal I remember that my teacher explained that to pass an argument by reference it was necessary to put var in front of the variable in the function / procedure parameters.
Example:
function exemplo(var, a: real):rea...
I'm trying to use the argparse library to guide the main module ( __main__ ) between two possible executions:
import unittest
import argparse
arg = argparse.ArgumentParser(description='Execution type')
arg.add_argument('--type',...
I am doing a graph work where I have to make a library and after generating the jar in the execution I need to inform two parameters that are txt files, the first one will be the input data in the second output. My doubt is how I do to pass two...
The verificaCampoVazios function has two parameters ( fs and campos ).
verificaCamposVazios = function (fs, campos)
{
console.log(campos[0]);
}
Example of how function is called:
verificaCamposVazios(fsInformacaoCandi...
Is there any way to make a function use multiple arguments without their declaration? For example:
#import<stdio.h>
#import"rlutil.h" //para as cores
void a(color,string){
setColor(color);
printf("%s",string);
setColor(15);...
I have the following program:
#include <stdio.h>
int a,b;
int main(int argc,char *argv[]){
int c;
printf("%d",a+b);
printf("%d",c);
return 0;
}
How do I pass a value to the global or local variable via terminal?
When I...
I work making links using the MicroSip program. But I have difficulties to automate the dialing in just one click. I found an extension in the Chrome Store that allows this by converting the numbers in the browser into callto:, tel: or sip: link...
I'm trying to run a program by passing some values as partions on the command line but it is returning the error below.
C:\Users\joao.mello\Documents\C#> .\exercicio32.exe 5 1 0 4 9 32 4
Unhandled Exception: System.IndexOutOfRangeExce...
I have a spreadsheet, I have to do some operations on the data, so I exported to the R and manages to select the important arguments, now I need to know how many repeated elements there are in a column:
for example
PRTR4: 4
VALE5: 20
.
.
....
I'm trying to create a shell script to add new users to the GNU / Linux system
But without entering native commands like adduser or useradd in the script, it would be something on the nail.
I'm with something almost fine (ready!), bu...