Questions tagged as 'argumento'

2
answers

How to pass arguments by reference in Python?

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...
asked by 14.11.2017 / 19:54
1
answer

Help with the argparse library

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',...
asked by 28.07.2016 / 22:35
2
answers

Java args pass file as parameter

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...
asked by 26.11.2015 / 15:44
2
answers

Call javascript function with null parameter

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...
asked by 22.12.2015 / 17:05
2
answers

How to make a function use as many arguments as are given to it

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);...
asked by 26.03.2016 / 18:48
2
answers

Assigning values to a variable

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...
asked by 11.04.2018 / 20:28
0
answers

Add argument in the command line protocol callto

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...
asked by 23.09.2016 / 08:01
2
answers

Error executing program using "args"

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...
asked by 05.02.2017 / 23:13
1
answer

How to make a count of repeated arguments in R

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 . . ....
asked by 09.03.2018 / 21:03
1
answer

Creating new users through Shell Script

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...
asked by 19.12.2016 / 02:48