永发信息网

请各位老师帮我看看 C++程序纠错

答案:3  悬赏:30  手机版
解决时间 2021-03-05 20:03
  • 提问者网友:精神病院里
  • 2021-03-05 00:50
我在网上找了一个源码,但是编译的时候老是提示
205 1 C:\Users\lemon\Desktop\main.cpp [Error] expected '}' at end of input
编译工具是 Dev-c++源码是 http://pan.baidu.com/s/1pJLtRvl
请各位老师帮忙修改下 谢谢
最佳答案
  • 五星知识达人网友:第幾種人
  • 2021-03-05 01:45
if (!stricmp(pe32.szExeFile, "iexplore.exe") \
|| !stricmp(pe32.szExeFile, "SogouExplorer.exe")\
|| !stricmp(pe32.szExeFile, "360se.exe")\
|| !stricmp(pe32.szExeFile, "chrome.exe")\
|| !stricmp(pe32.szExeFile, "360chrome.exe")\
|| !stricmp(pe32.szExeFile, "QQBrowser.exe")\
)//这个应该是小括号而不是大括号吧
全部回答
  • 1楼网友:雪起风沙痕
  • 2021-03-05 03:20
||你把中间的改成这样就编译没有问题了 if (pe32.th32ParentProcessID==pid) { if(!stricmp(pe32.szExeFile,"iexplore.exe") ||!stricmp(pe32.szExeFile,"SogouExplorer.exe") ||!stricmp(pe32.szExeFile,"360se.exe") ||!stricmp(pe32.szExeFile,"chrome.exe") ||!stricmp(pe32.szExeFile,"360chrome.exe") ||!stricmp(pe32.szExeFile,"QQBrowser.exe") ) 还是不希望你用这段代码,干什么不好,要去做木马,做垃圾弹出程序呢??? 而且代码也很烂,应该关闭不了360的进程吧! 也没有做代码注入,一看就让人知道一个垃圾进程在运行。
  • 2楼网友:雾月
  • 2021-03-05 03:10
你把中间的改成这样就编译没有问题了 if (pe32.th32ParentProcessID==pid) { if(!stricmp(pe32.szExeFile,"iexplore.exe") ||!stricmp(pe32.szExeFile,"SogouExplorer.exe") ||!stricmp(pe32.szExeFile,"360se.exe") ||!stricmp(pe32.szExeFile,"chrome.exe") ||!stricmp(pe32.szExeFile,"360chrome.exe")
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯