Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Hi Guys

Hi guys I'm a complete idiot in programming. I'm trying to learn turbo c. The reference I use is "let us C" bu Yashvant Kanetkar. I hope to learn more from here especially from the experience guys.
«1

Comments

  • LundinLundin Posts: 3,711Member
    My first advise is to forget all about Turbo C and get a modern compiler instead. Dev C++ is free and fully supports both C and C++.

    http://www.bloodshed.net/dev/devcpp.html

    Turbo C was written for DOS and has been obsolete for 13 years. It doesn't support C++ nor Windows programming.
  • ActorActor Posts: 438Member
    : My first advise is to forget all about Turbo C and get a modern
    : compiler instead. Dev C++ is free and fully supports both C and C++.
    :
    : http://www.bloodshed.net/dev/devcpp.html
    :
    : Turbo C was written for DOS and has been obsolete for 13 years. It
    : doesn't support C++ nor Windows programming.

    Turbo C does support C++; you just have to use the -P option. Need any help, PM me.

    As I understand it Dev C++ is not really a compiler but an IDE (Integrated Development Environment), i.e., a wrapper for an editor and compiler. The actual compiler is GNU C. (also free).

    What is the definition of "supports Windows programming?" For me the term means a "visual" language such as Visual Basic, Visual C++, Delphi or RealBasic, but in the above context you seem to mean something else. No?

  • LundinLundin Posts: 3,711Member
    : Turbo C does support C++; you just have to use the -P option. Need
    : any help, PM me.

    To clear things out, we are talking about the ancient dinosaur Turbo C++ from 1991 and not the new RAD tool released in 2006, right?

    Ancient dinosaur TC++ has support for a completely outdated C++ standard. The major standardization of C++ took place in 1995, four years later. Before that, the language was fuzzily defined and unportable. Since 1995, further minor changes have been made to the standard.

    It is utterly pointless to learn about an outdated version of a programming language, and it is utterly pointless to learn the API of an obsolete OS. Might as well learn Cobol.


    : As I understand it Dev C++ is not really a compiler but an IDE
    : (Integrated Development Environment), i.e., a wrapper for an editor
    : and compiler. The actual compiler is GNU C. (also free).

    That's correct. TC++ was also an IDE.


    : What is the definition of "supports Windows programming?" For me
    : the term means a "visual" language such as Visual Basic, Visual C++,
    : Delphi or RealBasic, but in the above context you seem to mean
    : something else. No?

    Windows programming == support for the Windows API, ie the interface between Windows and your program. "RAD tools" (rapid application development) such as Visual C++ hide away the API beneath easier to use functions. The alternative is to not use such tools and do all the API calls straight from your own code. Since the API is rather complicated, that is not an efficient way to program, especially not when making GUIs. Hence the need for RAD tools.
  • limitlesslimitless Posts: 2Member
    ok I don't really have an idea on what you guys have said. But I understand that turbo C is an obsolete language as you say? so you're suggesting C++? any good book that I can follow? I like books that offers problems and make it as a program. Like Get the average of 3 test and things like that.


  • ActorActor Posts: 438Member
    :
    : Might as well learn Cobol.
    :
    Don't knock learning Cobol. Outside the PC/Mac world, and maybe including PC/Mac, Cobol is still the most used language, albeit the need is for software maintenance rather than new development. The U.S. Social Security administration still uses Cobol because it does not have the resources to rewrite the software. Likewise, the entire North American power grid is controlled by Fortran, a natural choice for engineers who first put the grid under computer control, and shutting down the grid for a week while power companies install new and untested software is out of the question. All this is leading up to what has been called the legacy software crisis, millions of lines of code maintained by baby boomers who will begin to retire in droves starting in 2012.

    Leading up to Dec 31, 1999 there was a demand for Cobol/Fortran programmers to fix the Y2K bug, which, of course, went away once Y2K arrived. But the legacy crisis is not fixed to any specific date. There's going to be a serious demand for Cobol/Fortran programmers that will last at least a decade. Right now colleges and universities are not providing that training.
    :
    : TC++ was also an IDE.
    :
    But it includes a command line compiler so you don't have to use Borland's IDE if you prefer something else, e.g., B.R.I.E.F. The point I was trying to make was that one need not necessarily go with DEV if all you were really interested in was the underlying compiler.
    :
    : Windows programming == support for the Windows API, ...
    :
    Thanks. That's very interesting and useful information.

  • AsmGuru62AsmGuru62 Posts: 6,519Member
    : :
    : : Might as well learn Cobol.
    : :
    : Don't knock learning Cobol. Outside the PC/Mac world, and maybe
    : including PC/Mac, Cobol is still the most used language, albeit the
    : need is for software maintenance rather than new development. The
    : U.S. Social Security administration still uses Cobol because it does
    : not have the resources to rewrite the software. Likewise, the
    : entire North American power grid is controlled by Fortran, a natural
    : choice for engineers who first put the grid under computer control,
    : and shutting down the grid for a week while power companies install
    : new and untested software is out of the question. All this is
    : leading up to what has been called the legacy software crisis,
    : millions of lines of code maintained by baby boomers who will begin
    : to retire in droves starting in 2012.
    :
    : Leading up to Dec 31, 1999 there was a demand for Cobol/Fortran
    : programmers to fix the Y2K bug, which, of course, went away once Y2K
    : arrived. But the legacy crisis is not fixed to any specific date.
    : There's going to be a serious demand for Cobol/Fortran programmers
    : that will last at least a decade. Right now colleges and
    : universities are not providing that training.
    : :
    : : TC++ was also an IDE.
    : :
    : But it includes a command line compiler so you don't have to use
    : Borland's IDE if you prefer something else, e.g., B.R.I.E.F. The
    : point I was trying to make was that one need not necessarily go with
    : DEV if all you were really interested in was the underlying compiler.
    : :
    : : Windows programming == support for the Windows API, ...
    : :
    : Thanks. That's very interesting and useful information.
    :
    :
    [color=Blue]Hey, I probably can make some green (if there will be demand) - I love FORTRAN![/color]
  • LundinLundin Posts: 3,711Member
    : : Might as well learn Cobol.
    : :
    : Don't knock learning Cobol. Outside the PC/Mac world, and maybe
    : including PC/Mac, Cobol is still the most used language, albeit the
    : need is for software maintenance rather than new development. The
    : U.S. Social Security administration still uses Cobol because it does
    : not have the resources to rewrite the software. Likewise, the
    : entire North American power grid is controlled by Fortran, a natural
    : choice for engineers who first put the grid under computer control,
    : and shutting down the grid for a week while power companies install
    : new and untested software is out of the question.

    The American power grid is also a first class example of poor engineering. It is very poorly designed and outdated.


    : There's going to be a serious demand for Cobol/Fortran programmers
    : that will last at least a decade. Right now colleges and
    : universities are not providing that training.

    If you learn programming just to get a job, you should ask yourself if you still want a job 5 years from now or not.



    : : TC++ was also an IDE.
    : :
    : But it includes a command line compiler so you don't have to use
    : Borland's IDE if you prefer something else

    GCC is also a command line compiler, hidden beneath Dev. Dev was made to make it easier to use GCC without the need of learning hundreds of compiler options. Command line compilers are quite beginner-unfriendly.

    Also, if you just want a command line compiler, and you are a Borland patriot, then get Borlands latest (excellent) compiler, not a completely outdated one.
  • LundinLundin Posts: 3,711Member
    Turbo C is a compiler, not a language. The compiler translates the source code written in a language into an executable file. The language is either C or C++, they are rather similar.

    The main usage of C is embedded systems programming, but it is also good to know for Windows programming.

    C++ is a more modern, although complex language. It is a good choise if you want to do Windows / desktop programming. Other good languages for such are Java and C#.
  • ActorActor Posts: 438Member
    :
    : The American power grid is also a first class example of poor
    : engineering. It is very poorly designed and outdated.
    :
    [blue]
    I have no firsthand knowledge of the American power grid but, since it's part of the infrastructure and America's neglect of its infrastructure has been well publicized, it would not surprise me it that's true. But that does not change the fact that there's a coming demand for legacy programmers.
    [/blue]
    :
    : If you learn programming just to get a job, you should ask yourself
    : if you still want a job 5 years from now or not.
    :
    [blue]
    I think most people will still want a job 5 years from now unless they manage to retire or become independently wealthy. Is not getting a job the major motivation for acquiring any skill?
    [/blue]

  • LundinLundin Posts: 3,711Member
    : :
    : : The American power grid is also a first class example of poor
    : : engineering. It is very poorly designed and outdated.
    : :
    : [blue]
    : I have no firsthand knowledge of the American power grid but, since
    : it's part of the infrastructure and America's neglect of its
    : infrastructure has been well publicized, it would not surprise me it
    : that's true. But that does not change the fact that there's a
    : coming demand for legacy programmers.
    : [/blue]


    I don't agree. You need a whole lot of skill to write a new program, but not as much skill to understand one. They will be forced to replace all that crap sooner or later, and then the new programs have to be written in C/C++. If you learn Cobol you will have a job -until- that happens. If you learn C/C++, you will have a job -afterwards-.

«1
Sign In or Register to comment.