This message was edited by MT2002 at 2007-2-2 12:1:18
: : : : I need to know something..
: : : ............ ............... help me :)
: : : :
: : :
: : : In my view you can use getch(); function available in conio.h
: : : Try this
: : :
: : : temp = getch();
: : : cout << "*";
: : :
: : : note that getch returns int value.
: : :
: : : Harshit
: : :
: :
: : The OP was using TurboC 2.1, an old DOS C compilier IDE. This compilier does not support C++ synthax (ie, std::cout). In fact, it doesnt even support all of ANSI C synthax.
: :
: : Also, if one is using C++, one should *never* use conio.h, as there is no need for it in modern compiliers. TurboC 2.01 (I believe) was pre ANSI, so it is a noncompilent compilier (Which is why it is not to par with ANSI C)
: :
: :
:
:
: Hey thanx for reply
: but i know a very little abt versions newer then 2.1
: although i am in BE 3rd yr
: can you pls tell me more
: u can mail me too
:
What do you need to know? I like Turbo C 2.01 (because of dos.h, it can allow direct access to hardware via interrupts/ports etc without being interrupted by Windows). Turbo C 2.01 was developed way back when PC real mode was standard (I believe so, anyway--I could be wrong). It was developed more then a decade ago.
Windows runs under protected mode and does not allow 32 bit instructions this. Because TurboC 2.01 produces 16bit real mode apps, it is emulated as such, and does have direct access. (Alot of DOS games used 32bit far pointers directly to video memory, for example)
Nontheless, TurboC 2.01 is Pre ANSI C--It doesnt even support the bool data type! For almost all development envirements, TurboC 2.01, as being pre ANSI-compilent (not up to standards) is rairley used for real world applications. Did I mention it is *very* non portable?
And, as being a primitive set of tools, includes an "okay" debugger (forget breakpoints), and does not produce the best code. Also, you can forget a good profilier with TurboC 2.01.
With that, anyone could use embedded 16bit x86 assembly to emulate the power of TurboC's dos and bios libraries, so their is no need for it anymore.
--------------
Turbo C is a great compilier for learning low level details without having to go through x86 asm. TurboC was my first compilier IDE, and I learned how low level graphics were implimented by using TurboC.
For real applications (or even learning a language).. ...no.
This is my opionion of course.