Thread: help with my conio.h

  1. #1
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    help with my conio.h

    well when i ty this program on a dev compiler it giver me some odd error..
    Code:
    #include <stdio.h>
    #include <conio.h>
    
    int main()
    {
    
      textcolor (LIGHTGREEN);
      cprintf ("Datainjector");
    
    
    
    
    return 0;
    }
    This program prints Datainjector in color..
    it does work with borland but not with dev i read there help files and they said i should add c:\dev-c++\lib\coni.o tot the "further object Fuiles" in the project options..but it aint workin help me out for cryin' loud ..well or should i just download djgpp

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > but it aint workin
    Can you be more specific?

    What compile / link / runtime errors (or not) do you get

    For starters, unless it's a typo
    c:\dev-c++\lib\coni.o
    should be
    c:\dev-c++\lib\conio.o

  3. #3
    Registered User datainjector's Avatar
    Join Date
    Mar 2002
    Posts
    356

    never mind i got it

    it works fine now i went and add c:\dev-c++\lib\conio.o to the compiler optins where it says execute command when compiling...

  4. #4
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    Good job! Conio can be pretty comfusing...thers threads like this all over the place
    .

  5. #5
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    The other option is this:


    #include <conio.c>
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. conio.h not working in *nix
    By wise_ron in forum C Programming
    Replies: 2
    Last Post: 05-04-2006, 01:54 PM
  2. conio.h in Visual C++ ?
    By Born_2B_Alone in forum Windows Programming
    Replies: 3
    Last Post: 09-22-2004, 07:32 PM
  3. Getting textcolor in conio.h to work with Win32
    By MMD_Lynx in forum C Programming
    Replies: 5
    Last Post: 09-02-2004, 01:32 PM
  4. conio.h
    By Jaguar in forum Linux Programming
    Replies: 10
    Last Post: 10-17-2002, 01:12 AM
  5. Conio.h file problems
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 05-23-2002, 01:44 PM