All my programs have Viruses

Ben Leib 6 Reputation points
2020-09-07T00:17:32.907+00:00

I make c++ programs with visual studio. I write to entire code myself and then compile it, but when I try to email it to someone, google says that there is a virus and won't let it send. What am I doing wrong, what counts as a virus?
Here is an example of one of the codes that was said to be a virus.
#include <iostream>
int main() {
std::cout << "Hello World";
}

What about this code is a virus?
Any help would be appreciated.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,174 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 29,506 Reputation points Microsoft Vendor
    2020-09-07T03:05:30.167+00:00

    Hi BenLeib,

    Referring to the code you provided, I am afraid that there is no problem with this code.
    You could try to compress and encrypt your file. Then, email again. The similar issue may help you.

    Best regards,
    Anna

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.