Hi Dps i am student of BSCS please suggest me a compiler for Programming with Turbo C, i have its dos mode IDE enviroment but i want to work in window enviroment i was installed Dev C++ for Turbo c programming but it giving a little difference. for example i programmed a simple script void main (void) { printf("C is a Basic Language"); } but when i was working with Dev C++ it was was working with only int main (int) { printf("C is a Basic Language"); } instead of void; and also tell me a compiler for which i use for javascripting because simple notepad doesnt tell me my mistakes Thanks In Advance
First the "main" should be int since the integer you return tells the system if an error occurred while executing it. Visual C++ also works with C and it´s easier to debug in and it got a free version. For Javascript I'm not sure, personally I'm just using an editor with syntax highlighting when coding Javascripts.
NetBeans JavaScript Editor is very good for JavaScript. It has Code completion in addition to Syntax highlighting. As n3r0x said, there is a syntax error in you code. It should return a value as you defined the return type of function "main" as "int". There are some differences between Turbo C and the standard C we use today. For example graphics.h that provides graphics under dos environment is not available on standard C libraries. So if your tutor asked to work in Turbo C, you better work on that. I think you can still work with Turbo C under Windows as long as you have a Command Prompt. But if there is no restriction and your tutor is only considering pure C language, then you must use a standard C IDE like Visual C++ 6, Visual C++.Net, Dev C++, Borland CBuilder, etc... under windows.