由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - problem with defining an array
相关主题
grep cannot handle "" ?想领养考拉的看这里
uBuntu家族又添一员。大家email发简历一般怎么写subject
Hey Ubuntu, Stop Making Linux Look BadAmex $20 off for $79 spent at Walmart.com
clonezilla?【EB3 2016年一月第6绿】 - TSC EB2323
偶也要升级 10.4 了。。。Help to configure php
kde实在需要个dockJavaBean variable name standard
can i start X with user defined xorg.conf as normal user?cgi测试newbee问题
快速替换文件里面的特定值ssh question on linux
相关话题的讨论汇总
话题: myname话题: defining话题: problem话题: array话题: zera
进入Linux版参与讨论
1 (共1页)
p*********9
发帖数: 277
1
myname[0]="zera"
myname[1]="beta"
总说
myname[0]=zera: not found
myname[1]=beta: not found
怎么回事情呢?
谢谢
d*b
发帖数: 21830
2
sigh, myname[0].c_str()

【在 p*********9 的大作中提到】
: myname[0]="zera"
: myname[1]="beta"
: 总说
: myname[0]=zera: not found
: myname[1]=beta: not found
: 怎么回事情呢?
: 谢谢

p*********9
发帖数: 277
3
dsb, thanks for your reply. It is not working.I tried another three
approaches:
names=( Jennifer Tonya Anna Sadie )
names=( "John Smith" "Jane Doe" )
colors[0] = red
colors[3] = green
colors[4] = blue
None of them works. My system is ubuntu 9.10 Karmic Koala. Probably
something wrong with my settings in the shell. I cannot figure it out.
p*********9
发帖数: 277
4
I solve the problem. I used the wrong shell version.
I originally used #!/bin/sh. It works on a lot of stuff.
After I changed it to #!/bin/bash. the problem with array disappeared.
X*V
发帖数: 1431
5
it is not C++

【在 d*b 的大作中提到】
: sigh, myname[0].c_str()
1 (共1页)
进入Linux版参与讨论
相关主题
ssh question on linux偶也要升级 10.4 了。。。
[转载] 主页问题kde实在需要个dock
IE的Cookie问题can i start X with user defined xorg.conf as normal user?
如何用SAS直接读gzip压缩文件?快速替换文件里面的特定值
grep cannot handle "" ?想领养考拉的看这里
uBuntu家族又添一员。大家email发简历一般怎么写subject
Hey Ubuntu, Stop Making Linux Look BadAmex $20 off for $79 spent at Walmart.com
clonezilla?【EB3 2016年一月第6绿】 - TSC EB2323
相关话题的讨论汇总
话题: myname话题: defining话题: problem话题: array话题: zera