Results 1 to 5 of 5

Thread: Adding <conio.h>

  1. #1
    Join Date
    Sep 2012
    Beans
    57

    Exclamation Adding <conio.h>

    How I can add <conio.h> library to the gcc Ubuntu compiler?

    That's it, thank you!
    Attached Images Attached Images

  2. #2
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Adding <conio.h>

    Ubuntu doesn't have <conio.h>. It's a Microsoft-specific header. What are you using it for?

  3. #3
    Join Date
    Sep 2012
    Beans
    57

    Re: Adding <conio.h>

    Quote Originally Posted by MG&TL View Post
    Ubuntu doesn't have <conio.h>. It's a Microsoft-specific header. What are you using it for?
    Sometimes I need the
    Code:
    clrscr();
    instruction. If stdio.h has a clear screen instruction, it will be better.

  4. #4
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: Adding <conio.h>

    Quote Originally Posted by manudo View Post
    Sometimes I need the
    Code:
    clrscr();
    instruction. If stdio.h has a clear screen instruction, it will be better.
    I'm not sure that it does, but here's a simple hack:

    Code:
    //for system()
    #include <stdlib.h>
    
    main() {
        //clear the screen
        system("clear");
    }

  5. #5
    Join Date
    Sep 2012
    Beans
    57

    Re: Adding <conio.h>

    Really thank you man, It work fine!

Tags for this Thread

Bookmarks

Posting Permissions

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