完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
好吧,这可能是一个非常愚蠢的问题,但我已经烧了足够的时间尝试这样做:我想在一个arrray中反转值。
通过这个,我的意思是采取如下的数组:12345并颠倒顺序,如:54321必须有一个功能,在某处做到这一点。 有人能指出我吗?我正在使用Vee Pro 9Thanks 以上来自于谷歌翻译 以下为原文 OK, this is probably a very dumb question, but I have already burnt enough time trying to do it: I want to invert the values in an arrray. By this, I mean take an array like: 1 2 3 4 5 and invert the order, like: 5 4 3 2 1 There has to be a funtion that does this somewhere. Can someone point me to it? I am using Vee Pro 9 Thanks |
|
相关推荐
5个回答
|
|
我不记得有任何功能,但我做了一个简单的程序,做你想要的。附件是我为你做的程序。
希望有所帮助。 以上来自于谷歌翻译 以下为原文 I don't recall there's any function doing it, but I made a simple program that does what you want. The attachment is the program I made for you. Hope that helps. 附件 |
|
|
|
没有循环,这适用于数值数组:
以上来自于谷歌翻译 以下为原文 Without a loop, this works for numerical arrays: 附件
|
|
|
|
“没有循环,这适用于数值数组:Capture.PNG”非常整洁,从来不知道这种威廉希尔官方网站
。
我想它只适用于数字? 文字或组合怎么样? 以上来自于谷歌翻译 以下为原文 " Very neat, never knew this technique. I suppose it ONLY works for numerical? What about text or combined? |
|
|
|
是的,这种威廉希尔官方网站
仅适用于数值数组。
另一种适用于所有数组类型的方法可能是: 以上来自于谷歌翻译 以下为原文 Yes, this technique only works for numerical arrays. Another way, working for all array types, could be: 附件
|
|
|
|
gojoh,你知道是否有办法对数组进行排序以消除重复的数据吗?假设我有一个数组,橙色,苹果,香蕉,苹果,苹果,橙子,苹果。但我希望它只输出一个
类型,橙色,苹果,香蕉。任何想法?谢谢,Woozie 以上来自于谷歌翻译 以下为原文 gojoh, Do you know if there's a way to sort the array to eliminate repeated data? Let say I have an array of, orange, apple, banana, apple, apple, orange, apple. But I want it to output just ONE of each type, which is orange, apple, banana. Any idea? Thanks, Woozie |
|
|
|
只有小组成员才能发言,加入小组>>
1385 浏览 0 评论
2419 浏览 1 评论
2268 浏览 1 评论
2105 浏览 5 评论
3020 浏览 3 评论
1430浏览 1评论
关于Keysight x1149 Boundary Scan Analyzer
827浏览 0评论
N5230C用“CALC:MARK:BWID?”获取Bwid,Cent,Q,Loss失败,请问大佬们怎么解决呀
1197浏览 0评论
1385浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-2-25 04:43 , Processed in 1.426535 second(s), Total 83, Slave 67 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191