Results 1 to 7 of 7

Thread: conio.h

  1. #1

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266
    Quick stupid question:

    Is <conio.h> part of C++ or just plain C?

    Thanks
    jovton

  2. #2
    Addicted Member Active's Avatar
    Join Date
    Jan 2001
    Location
    Lat: 13° 4' 46" N, Long: 80° 15' 20" E
    Posts
    209
    In Conio.h - header file distributed with VC++6

    /***
    *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]
    *
    ****/
    If you can't beat your computer at chess, try kickboxing !!!
    [Download Tag Editing Tools.]

  3. #3

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266
    Is it ANSI compliant? Or just Micrø$øft compliant?
    jovton

  4. #4
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    It's come with every compiler I've seen so far, so I assume it's ANSI compliant
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  5. #5

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266
    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?
    jovton

  6. #6
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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 (). 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.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  7. #7

    Thread Starter
    Hyperactive Member jovton's Avatar
    Join Date
    Nov 2000
    Location
    South Africa
    Posts
    266
    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.
    jovton

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width