Thursday, October 14, 2010

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


The difference between Function and Procedure!

Posted: 14 Oct 2010 12:07 AM PDT

Hi friends,
I want to know what is the difference between Function and Procedure. As i concerned Function always return a value, and the Procedure never returns any value.
If you know another points that differentiates the Procedure from Functions , please add them. :)

Doubt in html codes..?

Posted: 13 Oct 2010 10:11 PM PDT

Any body have idea about how meta tag works in html codes ?

Vb 6.0

Posted: 13 Oct 2010 06:25 AM PDT

I have done the following code for binary search.But all the time Its showing match not found even if the number is present in the array:(

Dim a As Integer
Dim i, j, k As Integer
Dim numbers(20) As Integer

Private Sub Command1_Click()
j = InputBox(" enter the number of elements in the array")
For i = 0 To j - 1
k = InputBox("enter the number:")
numbers(i) = k
Next i
MsgBox ("numbers successfully inserted")
a = InputBox("enter the number to be searched")
search12 (a)
End Sub

Private Function search12(b As Integer)
Dim Min As Integer
Dim Max As Integer
Dim Mid As Integer
Min = 0
Max = UBound(numbers)
Do While Min <= Max
Mid = Int((Min + Max) / 2)
If b = numbers(Mid) Then
' we have a match
MsgBox ("match found")
Exit Function
ElseIf b < numbers(Mid) Then
Max = Mid - 1
ElseIf b > numbers(Mid) Then
Min = Mid + 1
End If
Loop
'If (Min > Max) Then
' if we get here, the state was not found ...
MsgBox ("match not found")
'End If
Exit Function
End Function

How to create bootable disk from our installed OS ?

Posted: 13 Oct 2010 05:44 AM PDT

Hello friend's,
Anybody have idea how to create a bootable disk from our installed OS.
Like suppose i have installed ubuntu 10.04 LTS on my pc and i waant to create a bootable disk of ubuntu 10.04 LTS with the help of my installed OS.

Synchronized Nonce

Posted: 13 Oct 2010 03:20 AM PDT

hi,

can anybody suggest me some good algorithms or paper for generation of nonce such that the nonce can be generated using time value i.e. at a particular time, by the given algorithm a particular nonce is generated in spite of the system on which nonce is executed.

thanks

No comments:

Post a Comment