Urgent [ Please Suggest me a compiler for JavaScripting and Turbo C ]

Discussion in 'Programming' started by 123funda, Feb 14, 2010.

  1. #1
    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
     
    123funda, Feb 14, 2010 IP
  2. n3r0x

    n3r0x Well-Known Member

    Messages:
    257
    Likes Received:
    4
    Best Answers:
    1
    Trophy Points:
    120
    #2
    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.
     
    n3r0x, Feb 14, 2010 IP
  3. NeoCambell

    NeoCambell Peon

    Messages:
    456
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    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.
     
    NeoCambell, Feb 16, 2010 IP
  4. 123funda

    123funda Member

    Messages:
    462
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #4
    thanks friend
    to help me
     
    123funda, Feb 19, 2010 IP