0

I'm a student, I'm studying how to analytics and using parameters of the function from file.txt

File.txt content example:

int Add(int a, int b) { return a+b; }

Return_Value = "int"

Parameter = "int a, int b"

But I do not know how to use the parameters to call function with String.

How can this be achieved?

1 Answers1

0

According to this, I should be able to call a function by name, put return values in parameter/arguments list or within the parentheses, which passes them back, e.g.:

public void Add1 (a, b)
{
    // Call Add2, passing arguments Add1 received
    Add2(a, b);
}

public void Add2 (a, b)
{
    // code goes here for what to do with passed arguments
}

// This calls the function and passes parameters back
Woody1193
  • 7,252
  • 5
  • 40
  • 90
ariesENTJ
  • 1
  • 3