DevC++ avast virus!!!

whats with this simple makes a virus?? OMG im a malware progammer!!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

using namespace std;

enum lol {x,y,z};

int main()
{
    lol dim = y;
    cout << dim <<endl;
    
    system("pause");
    return 0;
    }


avast says:


 File name C:\CPP\lesson6.exe
 Malware name: Win32:Malware-gen
 Malware type: Virus/Worm
 VPS version:  100610-1,06/10/2010


how can i learn C++ if i cant see the output and it makes i virus
As quite a few people will tell you system is evil, don't use it. Well, it's not evil but can present a security compromise. This is why Avast will complain. I would advise not using system unless you really know what you're doing. Use cin.get() instead if you want to pause the console
tnx, spaggy, that works like charm, i thought system("pause"); the only way to pause the console.
Topic archived. No new replies allowed.