On the old borland turbo c ++ for dos, you need to run a program that, say, sorts an array. As far as I know, in borland turbo c ++ there is no header file with the name " algorithm ".
In this case, which library to connect here?
On the old borland turbo c ++ for dos, you need to run a program that, say, sorts an array. As far as I know, in borland turbo c ++ there is no header file with the name " algorithm ".
In this case, which library to connect here?
If you need sorting, you can use the standard C library <stdlib.h> and use the qsort function.
I think that in the libraries of Turbo C ++ also the sort function is defined somewhere. If I'm not mistaken, then Turbo Vision is included in Turbo C ++. You can view the libraries of this package.
Turbo C ++ should also include built-in online documentation. And besides, you can search the Internet for relevant material.
You can find a list of header files. The sorting may be in the <search.h> header, if there is one :).
At a minimum, all headers in BC ++ have the extension .h and no namespaces.
In BC ++ 3.1 (not Turbo) version, there really is no algorithm.h, so it is possible to get out in other available ways, for example, using stdlib.h + qsort. If memory serves, then all sorts of STLport support Borland compiler version only with the fifth.
Well, dessert: https://stackoverflow.com/questions/1961828/why-not-to-use-turbo-c
Turbo C is a real compiler
and further:
Besides, there are lots of problems with Turbo C ++ (Im kinda sure TC3 is being used). I have no idea! : P
- Its 16 bit (Since I am also from Mumbai University, I am pretty much sure, you need to be using TC3; 32 bit version of the compiler is also avaible)
- The program can use is 2 ^ 16 = 64 KB, which is very small as compared to modern day programs!
- You can make it real great programs using it.
- IDEs
- It does not conform to the standards that are laid down.
- You can never learn the concepts of exceptions, templates and the TurboC ++.
- The compiler doesn’t support modern casts, only C-Style casts.
- No stl
- And I doubt if it goes well with 3rd party libraries! eg database or graphics libraries.
- Diagnostic messages for erroneous programs.
- C ++ (kind of): D: P
Source: https://ru.stackoverflow.com/questions/457189/
All Articles