Jump to content

RyanDonnelly

Members
  • Content Count

    1
  • Joined

  • Last visited

About RyanDonnelly

  • Rank
    Candidate
  1. Hi, first post to this forum. Sorry if this is in the wrong place. I'm currently programming in VB and whenever I run my code an alert says that malware is detected, specifically: HEUR:Trojan.Win32.Generic. Surely I haven't just accidentally coded a Trojan? What can I do to stop this? Thanks. My code is here, not sure if this is relevant: Module Module1 Sub Main() Dim a = {1, 7, 5, 2, 3, 6, 8, 4, 9} Dim value = 0 Dim low = 0 Dim high = 0 Dim mid = 0 high = a(7) low = a(0) value = a(5) Mid = (high + low) / 2 Do Until a(value) = a(mid) If high < low Then Console.WriteLine("Error") End If If (a(mid) > value) Then low = a(0) high = a(mid - 1) mid = (high + low) / 2 ElseIf (a(mid) < value) Then low = a(mid + 1) high = a(8) mid = (high + low) / 2 Else Console.WriteLine("In middle of subarray") Console.ReadLine() End If Loop Console.WriteLine("Not in middle of subarray") Console.ReadLine() End Sub End Module
×
×
  • Create New...

Important Information

We use cookies to make your experience of our websites better. By using and further navigating this website you accept this. Detailed information about the use of cookies on this website is available by clicking on more information.