简体   繁体   中英

illegal action in notepad++

I just started to teach myself C++ and i'm trying to run a simple code on notepad ++ and when it pops up it says the NTVDM CPU has encountered and illegal instruction. could it be a problem with my code? or is it something else. just incase it is my code this is the simple code:

// Your Name - Project Title - Date - (Whatever Else-Optional)
#include <iostream>
using namespace std;
int main (void){

    cout << "Hello World!";
    return 0;
}

General advice is: Ensure that you are able to compile your code using the command line (1) using plain shell command (I mean without Notepad++) AND (2) your compile batch runs from any folder from where you launch it. If you get your compile batch working, then adapt it for Notepad++ and call it from there.

If you find you have a compile problem (independent of N++ as I shown above), please re-classify your StackOverflow question also possibly with different tags so correct people can find it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM