小编Rob*_*225的帖子

x86操作码是武断的吗?

x86操作码是否是任意的?

有没有原因hlt是0xf4和nop0x90?

x86 assembly machine-code

4
推荐指数
1
解决办法
299
查看次数

当我编译我的 C++ 代码时,avast 认为它是病毒

我第一次在开发控制台中编译并运行我的程序时,当我打开它时,我的电脑开始滞后,它在我的桌面上创建了一堆 .tmp 文件,名称类似于trzFE47.tmp我的电脑开始滞后我不得不关闭我的电脑我什至检查过任务管理器的后台进程处理可疑的事情,但我什么也没发现,所以当我重新启动我的电脑时,我再次编译我的 .cpp 程序,avast 给了我一个警告,说在我的代码中检测到可疑项目

#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
using namespace std;

int main() {
    int l;
    int a;
    int b;
    int c;
    Sleep(3000);

    srand(time(0));
    l = 1+rand()%6;
    a = 1+rand()%6;
    b = 1+rand()%6;
    c = 1+rand()%6;
    cout << a  << endl << b << endl << c << endl;
    if (a==b&& b==c&&c==a){
        int v;
        cout << "you win";
        cin >> v;
    }else{
        cout << "try again?"; …
Run Code Online (Sandbox Code Playgroud)

c++

0
推荐指数
1
解决办法
2456
查看次数

标签 统计

assembly ×1

c++ ×1

machine-code ×1

x86 ×1