visual studio sucks and this thread will probably be ignored as I'm not even a serious programmer asking stupid questions.
but does anyone know how to write a program to fill an array with random numbers, find the first occurrence of a target value, and record the result in a second array -- and then repeat this experiment 100 times, keeping track of the results (ctrl+v)
Name:
Anonymous2008-06-01 12:23
thats toally impossible
Name:
Anonymous2008-06-01 12:29
gb2/b/
Name:
Anonymous2008-06-01 12:34
well I was expecting these replies. how about at least then a free ware version of visual studios 2005?
Name:
Anonymous2008-06-01 13:16
>>1
How is that question related to Visual Studio?
Name:
Anonymous2008-06-01 13:45
I can write it in O(N)
Name:
Ron Penton2008-06-01 13:46
That's easy to do using STD data structures and iterators.
*fills the mug*
Name:
Anonymous2008-06-01 13:55
>>5
its an interface development class, but for the entire courses length we've been making programs using visual studio 2005
For i = 0 To size - 1
OutputListbox.Items.Add(number(i))
Next
For i = 0 To size - 1
If number(i) = 0 Then
position = i
found = True
OutputListbox.Items.Add("zero is found at position " & i)
Else
OutputListbox.Items.Add("zero was not found")
End If
Next
End Sub
End Class
I still have to create a loop that will have this repeat 100 times, somehow save all the times zero appeared, and then have an array called count() list all the number of times zero appeared on a certain spot like
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy