参数 问答列表

多步骤 powershell 命令 [duplicate]

作者:pithhelmet 提问时间:8/1/2023

这个问题在这里已经有答案了: 添加成员与类型分配的怪异 性(3 个答案) 4个月前关闭。 我有一个 Windows 任务,它每次在凌晨 1:15 执行一次 powershell 命令 目前,他们使...

std::iterator 作为函数参数

作者:Vinod 提问时间:8/2/2023

我有以下一段代码: //code.h #include<string> #include<iterator> #include<iostream> using std::string; using...

有没有办法在 Python 中将参数显式声明为数组?[复制]

作者:user21113865 提问时间:8/4/2023

这个问题在这里已经有答案了: Python 3.5 中的类型提示是什么? (4 个答案) 如何正确操作注释/键入提示字符串列表 (3 个答案) 4个月前关闭。 有没有办法在python中明确声明函数...

删除 const 时模板中的编译错误

作者:nvn 提问时间:8/4/2023

template<typename T> void func(const T &x) { cout << "base template "<<x<<"\n"; } template<> void ...

以 const-reference 为参数的函数可以更改基础对象吗?

作者:Franz Ferdinand 提问时间:8/6/2023

对非常量变量的常量引用可以转换为非常量引用,然后可以通过引用修改基础对象。 它是否也适用于函数声明中的 const-references? 也就是说,在下面的代码中,如果 'a' 最初不是 cons...

功能参数位置突然表现得很奇怪

作者:GaryAtlan82 提问时间:8/8/2023

法典: 这个例子说明了我的意思: Function test{ param( [parameter(Position = 0, ValueFromPipeline)] [string]$Pa...

在 Python 中将输入到函数中的所有参数保存到文件中

作者:BBB 提问时间:8/8/2023

我在python中有一个函数,它接受许多参数: def do_something(epochs=1000, no_of_points=15, do_well=True, activation_fun...

从 java 传递给 jni 的参数返回奇怪的值

作者:Clamore 提问时间:12/8/2022

我正在尝试从 android 应用程序中的 Java 代码中调用 JNI 函数, 调用了该函数,但 JNI 函数中的参数值与函数中传递的参数值不同。 这是我的 java 声明和调用: public...

在 C 语言中是否有可能使函数将两种不同类型的变量作为参数?

作者:smbhav 提问时间:11/26/2022

int count_letters(string text, int length); int count_words(string text); int count_sentences(string...

InvalidArgument -1 值对索引无效,在使用 Windows 窗体时 checkedboxlist

作者:Marcel Majhenic 提问时间:8/9/2023

namespace ZzCleaner { public partial class Form1 : Form { //private CheckedListBox FoldersToClean...


共753条 当前第55页