|
In this way?
Dim d As List(Of Integer)
Dim d1 As List(Of Integer)
Dim d2 As List(Of Integer) = d + d1
my question was actually that
d has values = {1,2,3}
d1 has values = {4,5,6}
now if i write d2 = d+d1
then d2 should contains {1,2,3,4,5,6}
|
|
|
|
|
That's not the way it works. There is no operation defined for (System.Array) + (System.Array).
You either uses lists for this or use the Array.CopyTo method to build this array.
Dim d1() As Integer = {1, 2, 3}
Dim d2() As Integer = {4, 5, 6}
Dim d3(5) As Integer
Array.Copy(d1, d3, 3)
d2.CopyTo(d3, 3)
Or using a List(Of T):
Dim d1() As Integer = {1, 2, 3}
Dim d2() As Integer = {4, 5, 6}
Dim d3 As List(Of Integer)
d3.AddRange(d1)
d3.AddRange(d2)
|
|
|
|
|
My question was based on vb.net.
Is not List<integer> concerned with c/c++ ?????????????
|
|
|
|
|
No, it's not. List and List(Of T) are collection classes in the .NET Framework. Any language that targets it can use those classes.
|
|
|
|
|
hello isidor7,
Thankx for your valueable help .
but if i read a page, word by word OR para by para then how can i come to know that the end of page is here.
suppose, if there is 10 pages then it is go on reading till the last page comes.. how can i come to know then that the page 1 is over and 2 is start ???
If u know plz help ....
thankx again for your reply
- koolparasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
well use the following pseudo code
prvPage=0 'stores previous page
while reading paragraph by paragraph '<<change this
="" if="" currentpage<="">prvPage then
'page changed!
prvPage=currentPage
end if
loop
isidoros
|
|
|
|
|
Dear Isidor,
thankx a lot.
can you give me code budy ????
please help....
-koolprasad2003
Be A Good S/W Eng... Life is swing with you..Enjoy..
|
|
|
|
|
Can anyone give me one example about Win Socket on Windows Form?
Thanks
................
|
|
|
|
|
Do you mean WinnSock Component?
Regards,
Satips.
|
|
|
|
|
Yes,if you know, Can you give me an example?
Regard
Socheat
................
|
|
|
|
|
The Article By Chris Kolkman WinSock.Net[^] here in CP will help you.
Regards,
Satips.
|
|
|
|
|
Thanks, i hope this helpful.
Socheat
................
|
|
|
|
|
Welcome!!!
Regards,
Satips.
|
|
|
|
|
Do u have any concept for me for creating application chatroom?
Socheat
................
|
|
|
|
|
|
Thanks in advanced
Socheat
................
|
|
|
|
|
Always Welcome!
Regards,
Satips.
|
|
|
|
|
Sorry, What do u do?
................
|
|
|
|
|
Working as a Senior software programmer and the software consultant in an organization.
Regards,
Satips.
|
|
|
|
|
I want to be like that, but my knowledge not good just in small, do you have any andvance for me.
Socheat
................
|
|
|
|
|
hello,
I am trying to read a file that has a long adress (its in many sub directories) and I get an error saying that VB.net can't access it because the path is too long does anyone know an alternate way of accessing files which isn't restricted by the nuber of characters in the path ?
Thanks
Al968
Avast Antivirus-<url>http://www.avast.com<url>
|
|
|
|
|
Hey,
Does it shows the Error as System.IO.PathTooLongException error.
Please clarify it.
Regards,
Satips.
|
|
|
|
|
The maximum path supported by Windows is 260 characters. You can kind of get around this with cautious use of CurrentDirectory. But, since this limit also applies to any application, like backup packages, you're better solution is to manage the path length. You can write the code to change the current directory, but you have to be VERY careful in maintaining that path. For example, using the Open/SaveFileDialogs will change the current directory.
|
|
|
|
|
I was wondering if anyone has a Levenberg-Marquardt algorithm written in VB.
I have been knocking my head against this problem for weeks and while my application can fit simple equations to the data it fails at more complicated equations.
Currently it has no problems fitting equations such as
F(x)= a*X^nth + b*X^(n-1)+......
But it fails when fitting equations such as
F(x) = x/a
or
F(x) = a^x*b
(a-z are parameters that the program can vary and x is the independent variable.)
|
|
|
|
|
The 'External links' section has links to implementations of this in various languages including C# and VB. I think the VB implementation is VB6 so you'll need to from C# to VB.NET if it's VB.NET code you want. I believe there are tools to do this.
http://en.wikipedia.org/wiki/Levenberg-Marquardt_algorithm[^]
|
|
|
|