以下代码块中的名称类型是什么? [英] what is a type of names in the following code block?

查看:58
本文介绍了以下代码块中的名称类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

For Each name As String在名字中



strname + = name

下一页







和给出的选项是: -



a.one维数组



b.Arraylist



c.both a&b



d.String



并解释..

解决方案

这是你的作业,我担心你必须更加关注你在做什么。

这不是C#代码;相反,它是VB,所以你似乎试图让我们做错的课程作业...



因为它是作业,我不会只是给你一个答案,但我会给你两个线索:



1)它不是(d)

2)看看是什么For Each循环工作,然后检查可能的类型。 http://msdn.microsoft.com/en-us/library/vstudio/5ebk1751.aspx [ ^ ]应该帮助。



如果您需要更多帮助,我们将很乐意为您服务,但前提是您告诉我们您已经完成了一些工作,但却被卡住了

For Each name As String In names

strname +=name
Next



and the options given is:-

a.one dimensional array

b.Arraylist

c.both a& b

d.String

and explain it..

解决方案

This is your homework, and I'm afraid you have got to pay more attention to what you are doing.
That is not C# code; it's VB instead, so you appear to be trying to get us to do the wrong classes homework...

Since it is homework, I'm not going to just give you an answer, but I'll give you two clues:

1) it's not (d)
2) look at what a For Each loop works on, then examine the possible types. http://msdn.microsoft.com/en-us/library/vstudio/5ebk1751.aspx[^] should help.

If you need more help, we will be happy to oblige, but only if you show us that you have done some of the work yourself, but got stuck.


这篇关于以下代码块中的名称类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆