Skip to content
Loading
anty virus - problem in scan and eror
  • Do you can please write me how repair the error?
    0
  • The code is anty virus, I can choose folder and check how viruses there are but can't acan
    0
  • Bryian Tan
    by the way, what the code suppose to do? Get the count and display it?
    0
  • there is eror
    +1
  • Bryian Tan
    @Amit Gupta, you are right, I didn't pay attention to the detail. I though it was a count variable.
    +1
  • Amit Gupta
    HeyYou cannot use +=1 on string array, it works on operand. It should be like // virus +=1; label1.Text = "virus"+ st; As you are using foreach iterator, the value str contains the current item
    +1
  • Bryian Tan
    without the 1. It should be
    virus++;
    +1
  • i made ++ and there is bug
    +1
  • Bryian Tan
    why not virus++ ?
    0