I simplified the code to this and still got the error.
#include <iostream>
using std::cout;
int main(){
cout << "Hello world!";
return 0;
}
I can't copy paste the error code so im just retyping it. I apologize.
Debug Assertion Failed!
Program: ...metns\Visual Studio 2008\Projects\Practice\Debug\Practice.exe
File f:\dd\vctools\crt_bld\self_x86\crt\src\fdopen.c
Line 55
Expression: (filedes >= 0 && (unsigned)fildes < (unsigned)_nhandle)
It then mentiosn looking at the visual c++ docmentation.
After i just typed this all out I was looking at the development software and it had a dropdown menu that said debug, and i changed it to an option of release. solved my problem. So that's that I suppose. If anyone knows why I was getting that error in the first place it might save me a headache in the future i suppose. thanks
Last edited by Narue; Dec 16th, 2008 at 12:16 pm. Reason: fixed code tags