为什么最后转义符前的字符串显示文件有病毒?

问题描述 投票:0回答:1
#include<stdio.h>
void main(){
    printf("h\a");
    printf("h2\v");
}

我不知道为什么会这样,我正在使用 Bloodshed.inc 的 DevC++ 编译器

请解释这背后的逻辑和原因

我试图让转义字符正常执行。 我期望执行该语句以发出铃声并打印一个垂直制表符。 但是我的杀毒软件检测到病毒,终端显示:

--------------------------------
Failed to execute "C:\Users\123445678\OneDrive\Desktop\File\h.exe":
Error 225: Operation did not complete successfully because the file contains a virus or potentially unwanted software.

Press any key to continue . . .
c escaping compiler-warnings antivirus virus
1个回答
0
投票

您的防病毒软件报告误报。

© www.soinside.com 2019 - 2024. All rights reserved.