数组 问答列表

字符串文本和数组的地址

作者:Sanjay Verma 提问时间:4/13/2020

int main(){ char *str1="Hi", *str2 = "Bye"; printf("%u,%u\n",&str1,str1); int arr[5]={1,2,3,4,5}...

使用 AlaSQL 检索列的值

作者:PhDJ 提问时间:11/16/2023

我想我的 Javascript 不够强大,如果我有这个,我在网上找不到任何例子: alasql.options.autocommit = true; alasql("CREATE localStor...

是否可以在不显式定义变量来指定长度的情况下创建动态数组?

作者:Debuholden 提问时间:11/14/2023

我正在尝试创建一个动态数组,可以使用函数 & 进行修改。现在我目前拥有它的方式,我需要一个变量来跟踪它的大小。我对这个概念的实现是将数据/大小存储在结构中,如下所示:Array_Push(array,...

ValueError:设置带有序列的数组元素

作者:MedicalMath 提问时间:1/13/2011

为什么要执行以下代码示例: np.array([[1, 2], [2, 3, 4]]) np.array([1.2, "abc"], dtype=float) 都给出以下错误? ValueE...

在没有循环构造的情况下更改数组的所有值

作者:Benjamin Crouzier 提问时间:10/2/2012

我在php中有以下数组: $a = [0, 4, 5, 7]; 我想在不编写循环的情况下增加所有值(for、foreach...... // increment all values // $...

从多维数组中的 mid 调用数组

作者:Tanishk Nagda 提问时间:11/16/2023

#include<stdio.h> void storeTables(int arr[][10] , int n ,int number); int main() { int tables[2]...

Godot 中的“*”运算符的“数组”和“int”无效操作数

作者:Code Freak 提问时间:11/16/2023

我是 Godot 的新手,当我制作这个数组时出现此错误: var RL = [' '] + [atlas_coord_0[5]] * 5 + [atlas_coord_0[3]] * 5 + [at...

跳过数组公式中的空白或 #N/A 单元格

作者:Jay K 提问时间:11/16/2023

we.tl/t-bdhFMMp468 谁能帮我这个公式。 我正在比较列 C 和 D,以找到两列之间的最小差异,然后我从 A 列返回它的位置 我上传了一个例子来澄清。该公式在第一个示例中有效,但不...

'注意:数组到字符串的转换......”错误

作者:t4thilina 提问时间:11/16/2013

我有一个 PHP 文件试图回显一个,但我得到一个错误,这是代码:$_POST echo "<html>"; echo "<body>"; for($i=0; $i<5;$i++){ echo "<...

使用 PHP 的 “Notice: Undefined variable”, “Notice: Undefined index”, “Warning: Undefined array key” 和 “Notice: Undefined offset”

作者: 提问时间:11/24/2010

我正在运行PHP脚本,并继续收到以下错误: 注意:未定义的变量:my_variable_name在第 10 行的 C:\wamp\www\mypath\index.php 注意:未定义索引:my_...


共2020条 当前第3页