Keresés

Új hozzászólás Aktív témák

  • Forest_roby

    őstag

    válasz cucka #1947 üzenetére

    hi!

    Lényegében winre írták az egészet, de van benne egy devc++ al írt c progi, amit talán le tudok fordítani. A baj az, hogy include olva van benne egy conio.h fej-álomány és nem tudom, hogy hogyan fordítsam le linuxra. Lehet, hogyhiányzik vmi a gépről. nem tom.

    A progi:

    /*********************************************
    binary counter : DEV C++ 4.9.4.1 version
    This will count from 0 to 255
    This assumes your printer port address
    is 0x378 and also pauses for 250 mS between
    every count
    **********************************************/
    #include <stdio.h>
    #include <conio.h> /*required for _outp*/

    int main()
    {
    int x;
    for(x = 0;x<=255;x++)
    {
    _outp(0x378,x);
    sleep(250);
    }
    return 0;
    }


    Hogy tudom én ezt lefordítani?

    gcc -c Bcount.c -o Bcount.o parancsra ezt írta ki:

    Bcount.c:9:42: error: conio.h: Nincs ilyen fájl vagy könyvtár
    Bcount.c:20: error: stray ‘\26’ in program


    :R :R

Új hozzászólás Aktív témák