Quick stupid question:
Is <conio.h> part of C++ or just plain C?
Thanks ;)
Printable View
Quick stupid question:
Is <conio.h> part of C++ or just plain C?
Thanks ;)
In Conio.h - header file distributed with VC++6
Quote:
/***
*conio.h - console and port I/O declarations
*
* Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved.
*
*Purpose:
* This include file contains the function declarations for
* the MS C V2.03 compatible console I/O routines.
*
* [Public]
*
****/
Is it ANSI compliant? Or just Micrø$øft compliant?
It's come with every compiler I've seen so far, so I assume it's ANSI compliant :)
You see guys..............
My question is: Before C++ made its appearance, did the file <conio.h> exist?
(Was it used in plain C programs?)
If it did, are the one shipped with VC++ 6.0 modified by M$ to suit their needs?
Or is the one shipped with M$ VC++ 6.0 really ANSI compliant?
The headers are modified by every compiler manufacturer to correspond to the individual compiler. However, they stay ANSI compliant (at the source level, not necessarily object-compatible).
conio.h was originally for C programs, and is a platform-specialisation standard (:eek:). As in, it's standard as long as you're using a DOS/Win32 compiler, but if you move to Linux then it probably won't be there, as there will be something equivalent, such as curses.
Thanx Parks.
Actually I'm writing a C program with Turbo C++, and wanted to know if conio.h was legal to use.
Because I writing a program for a Semester Project on Software Design at our Technicon.
And professor wants us to use C, not C++. That's why I was confused.
But thank you. I appreciate your help.:)