所以我正在做一些字符串试验,只是为了看看我是否可以在变量中存储一个字符串,然后将变量的内容显示在屏幕上.显然,我的防病毒软件对此并不满意.
这是我的代码:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string boy = "hello";
cout << boy << endl;
system("pause");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
检测到可能对您的计算机或数据造成损害的活动软件.检测到:Trojan.Win32.Shutdowner.aadw
我到底是怎么做到的?我是计算机科学的第一年,我们已经得到了枚举.
这实际上是病毒还是我的病毒是' 偏执狂 '?或者换句话说,由于某些漏洞或其他漏洞,它只是将其误认为是病毒?
PS我正在使用 DEVC++
我正在尝试创建一个简单的矩形,它将初始化值x = 10,y = 15,width = 35和height = 50,但它给了我一个错误:
"The import java.awt.Rectangle conflicts with a type defined in the same file"
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
这是我的代码:
import java.awt.Rectangle;
public class Rectangle
{
public static void main(String[] args)
{
Rectangle myRect = new Rectangle(10, 15, 35, 50);
}
}
Run Code Online (Sandbox Code Playgroud)
我正在使用Eclipse.