I'm having trouble using Borland C++ 5.02 that I got from school to work on my home computer with Windows ME. Does anyone know if there is patch or free upgrade? Thanks.
I'm having trouble using Borland C++ 5.02 that I got from school to work on my home computer with Windows ME. Does anyone know if there is patch or free upgrade? Thanks.
Clarifying the trouble would be a start
As would removing ME
How about some other compilers
http://www.compilers.net/
http://www.thefreecountry.com/developercity/index.html
When I try to run a program that ran in class (on Windows NT, I believe) on my home computer I get the error "File has caused an error in xxxxxxx.EXE. File will now close. If you continue to experience problems, try restarting your computer."
Thanks for the website references.
> When I try to run a program that ran in class
Any chance of pasting this program?
Just because your program works in one compiler/OS doesn't mean that its bug free and will work in all other environments.
Also, try a really simple program like
And check this works everywhere you work, before dismissing your environment as brokenCode:int main ( ) { printf( "hello world\n" ); return 0; }
Your program worked on my ME system. Other programs I have written for class have worked too. Just some of them don't. Maybe it's a function I'm using. I've attached the program I trying to run because it's a little long. Thanks.
Well apart from void main should be int main, and that main should have a return 0; at the end, seems OK to me
You could try say commenting out the call to bubblesort, like so
// bubbleSort(Student, Test_Score);
It will print in the wrong order, but the calculations should still be good. Does it fail then?
Try commenting out other bits as well, see if that tells you anything.
Actually just as I received your reply I was finally able to get it to run by changing the Target Type from EasyWin [.exe] to Application [.exe] and it ran without error, but did not stop so I could see the results. So I stuck a "scanf" at the end and it seems to work now. Thanks for all of your input.
You can always use a system pause as opposed to the scanf:Originally posted by NCCMelissa
Actually just as I received your reply I was finally able to get it to run by changing the Target Type from EasyWin [.exe] to Application [.exe] and it ran without error, but did not stop so I could see the results. So I stuck a "scanf" at the end and it seems to work now. Thanks for all of your input.
Code:system("PAUSE");
DrakkenKorin
Get off my Intarweb!!!!
>You can always use a system pause as opposed to the scanf:
Or not, system should be avoided when possible. While we're at it, scanf should be too. I prefer getchar() at the end of my programs if they need to be stopped before closing since it's both standard and not terribly inefficient.
-Prelude
My best code is written with the delete key.