This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Try this: 1. Create new project and create new c++ main file. #include <stdio.h> int main(int argc, char**argv) { int i; printf("Enter some integer: "); scanf("%d", &i); printf("i is %d\n", i); return i; } 2. Make sure that 'Console Type' property of the project is set to Default or 'External Terminal' value. Exit status of the program is always displayed as '0' With 'Output Window (Input only)' it works just fine.
*** This issue has been marked as a duplicate of 89334 ***