title: Loudicrouz.J virus in visual studio 2017
body: <p>I was making a simple Console based C++ application and made a loading bar using Visual Studio 2017. I encountered an error having a prompted message that my code contains potentially bugs or viruses. Microsoft Security detects it as <strong>Torjan:Win32/Loudicrouz.J (severe)</strong>.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;conio.h&gt;
  #include &lt;cstdlib&gt;
  #include &lt;time.h&gt;
  #include &lt;Windows.h&gt;
  
  using namespace std;
  
  class loading_bar {
      int loading_percentage;
      int loading_per_increment;
  public:
      loading_bar();
      void print_loading_bar();
      void delay(int);
  };
  
  void loading_bar::delay(int milliseconds)
  {
      clock_t start = clock();
      while ((clock() - start) * 1000 / CLOCKS_PER_SEC &lt; milliseconds) {
  
      }
  }
  
  loading_bar::loading_bar() {
      loading_percentage = 0;
      loading_per_increment = 1;
  }
  
  void loading_bar::print_loading_bar() {
      for (; loading_percentage &lt; 50; loading_percentage++) {
          system("cls");
          cout &lt;&lt; "\n\n\n\n";
          cout &lt;&lt; "\t\t\t\t";
          cout &lt;&lt; "--------------------------------------------------\n";
          cout &lt;&lt; "\t\t\t\t";
          cout &lt;&lt; "|";
          for (int i = 0; i &lt; loading_percentage; i++) {
              cout &lt;&lt; char(219);
          }
          for (int j = 49 - loading_percentage;j&gt;0; j--) {
              cout &lt;&lt; " ";
          }
          cout &lt;&lt; "|\n";
          cout &lt;&lt; "\t\t\t\t";
          cout &lt;&lt; "--------------------------------------------------\n";
          delay(100 / loading_per_increment);
      }
  }
  </code></pre>
  
  <p>Though my code is working fine and still I don't know what's the reason behind this virus. I was unable to find the issue where it's been caused.</p>