parameter-passing Questions
2
I need to reduce the memory used by my native Windows C++ application, without compromising its performances.
My main data structure is composed by several thousands of instances, dynamically allo...
Pameliapamelina asked 21/10, 2016 at 7:12
3
Solved
Suppose I have a function which takes some pointer parameters - some non-const, through which it may write, and some const through which it only reads. Example:
void f(int * a, int const *b);
Supp...
Quan asked 5/9 at 9:27
4
Update 1:
After looking carefully at the output again, I sort of figured it out.
By adding a trailing space between the closing parenthesis and the quotes it works:
powershell -ExecutionPolicy By...
Aliaalias asked 6/9, 2018 at 13:22
5
Solved
I'm asking about the <thread> library in C++11 standard.
Say you have a function like:
void func1(int a, int b, ObjA c, ObjB d){
//blahblah implementation
}
int main(int argc, char* argv[])...
Stabilize asked 3/12, 2013 at 0:46
9
Solved
I have a Fragment FR1 that contains several Nested Fragments; FRa, FRb, FRc. These Nested Fragments are changed by pressing Buttons on FR1's layout. Each of the Nested Fragments have several input ...
Goosander asked 17/4, 2014 at 20:35
1
Background
I want to display entity-independent information in the EDIT-page. According to the official documentation it can be solved with configureResponseParameters-function.
Problem
So I implem...
Contain asked 10/12, 2020 at 6:33
14
Solved
I am using py.test to test some DLL code wrapped in a python class MyTester.
For validating purpose I need to log some test data during the tests and do more processing afterwards. As I have many t...
Gluey asked 2/8, 2013 at 8:11
5
Solved
If I have a method like this:
public void DoSomething(int Count, string[] Lines)
{
//Do stuff here...
}
Why can't I call it like this?
DoSomething(10, {"One", "Two", "Three"});
What would be...
Uniformed asked 13/9, 2009 at 0:2
12
This is my first post on StackOverflow, so apologies if I'm not following the correct format.
I'm building my first app using tab navigator from React Navigation v 5.x and have run into a big probl...
Architectonics asked 27/2, 2020 at 18:0
8
PS C:\> cd Program Files
When I give this command, I don't know why, but it is not accepting Program Files. The same command is working perfectly fine in cmd.
This is the error it shows:
Set...
Polydactyl asked 21/7, 2018 at 19:12
5
Solved
In code like zip(*x) or f(**k), what do the * and ** respectively mean? How does Python implement that behaviour, and what are the performance implications?
See also: Expanding tuples into argumen...
Friedrick asked 27/5, 2010 at 14:10
5
Solved
I am new to writing Shell Scripts and am having some difficulties.
What I Want To Achieve
I have an array of strings in scriptOne.sh that I want to pass to scriptTwo.sh
What I Have Done So Far
...
Allness asked 15/4, 2013 at 15:45
18
Solved
Occasionally , we have to write methods that receive many many arguments , for example :
public void doSomething(Object objA , Object objectB ,Date date1 ,Date date2 ,String str1 ,String str2 )
{
...
Swaraj asked 12/3, 2010 at 11:51
41
Solved
I wrote this class for testing:
class PassByReference:
def __init__(self):
self.variable = 'Original'
self.change(self.variable)
print(self.variable)
def change(self, var):
var = 'Changed'
...
Mokas asked 12/6, 2009 at 10:23
3
Solved
If I have
func returnIntAndString() (i int, s string) {...}
And I have:
func doSomething(i int, s string) {...}
Then I can do the following successfully:
doSomething(returnIntAndString())
...
Ciao asked 8/2, 2016 at 16:31
6
Solved
I read here that in C void foo() means a function foo taking an unspecified number of arguments of unspecified type.
Can anyone give me or point me to an example where a C function takes an unspeci...
Chug asked 27/2, 2014 at 16:4
6
In my script, I am reading data from a Spreadsheet and creating a time based trigger to make a POST request with some of that data at a specific time.
The problem is, I can't find any way to pass ...
Breakwater asked 21/9, 2015 at 14:22
10
Solved
I've written function 'A' that will call one of a number of other functions. To save re-writing function 'A', I'd like to pass the function to be called as a parameter of function 'A'. For example:...
Sedulous asked 2/3, 2014 at 15:37
2
Solved
I have a parameterized RMarkdown file, parameterized.Rmd, with the following contents.
---
title: "Parameterized report"
output: html_document
params:
input_df: NULL
---
```{r sec1}
head...
Nedry asked 10/1, 2022 at 16:41
3
Solved
I "linked" Excel to Sql and it worked fine - I wrote some SQL script and it worked great. All I want to do is to pass parameter to query. Like every time I make refresh I want to be able to pass pa...
Cuspidor asked 25/3, 2011 at 15:43
3
Solved
I have an array of objects. i am iterating that in loop and passing each item's name to onclick which targets a function openIt(val) in app.js file which is in assets folder. ie
Angular Code:
<...
Lutenist asked 8/1, 2020 at 6:22
28
Solved
What do *args and **kwargs mean in these function definitions?
def foo(x, y, *args):
pass
def bar(x, y, **kwargs):
pass
See What do ** (double star/asterisk) and * (star/asterisk) mean in a fu...
Policewoman asked 31/8, 2008 at 15:4
11
Solved
I am new to JavaScript/jQuery and I've been learning how to make functions. A lot of functions have cropped up with (e) in brackets. Let me show you what I mean:
$(this).click(function(e) {
// do...
Treaty asked 25/4, 2012 at 20:39
3
I have a C++ Google Benchmark Program. It uses Google's BENCHMARK_MAIN() method. Now I call and execute the compiled program with a Go script. Is there a way to pass arguments into my benchmark pro...
Stray asked 25/7, 2018 at 12:51
5
Solved
// this e works
document.getElementById("p").oncontextmenu = function(e) {
e = e || window.event;
var target = e.target || e.srcElement;
console.log(target);
};
// this e is undefined
funct...
Groth asked 6/5, 2013 at 17:52
1 Next >
© 2022 - 2024 — McMap. All rights reserved.