So wird's gemacht: Improved Console 4.0 in DevC++ 4.9.9.2 einbinden!



  • dann wollen wir mal...

    • die improved console(ic) downloaden und die files in einen beliebigen ordner packen
    • devc++ starten
    • devc++ den ordner zeigen in dem sich die files befinden: tools > compiler options > directories > c includes / c++ includes (je nachdem wofuer ihrs haben wollt)
    • neues projekt anlegen und die files "ic.hpp" "ic.cpp" dem projekt hinzufuegen: project > add to project
    • in euer eigentliches programm muesst ihr nun die "ic" einbauen: #include "ic.hpp"
    • using namespace ic;using namespace ic::shorties; nicht vergessen

    ... jetzt sollte es eigentl. laufen.

    hier noch ein bissl code um sicherzu gehen dass es auch laeuft, devcpp sollte es auf anhieb compilern koennen:

    #include <iostream>
    #include <conio.h>
    #include "ic.hpp"
    
    using namespace std;
    using namespace ic;
    using namespace ic::shorties;
    
    int main()
    {
      textcolor(FG_RED);
      gotoxy(25,10);
      cursize(0);
      cout<<"es funzt !! sogar in rot :)";
      gotoxy(18,11);
      cout<<"und ohne den blinkenden cursor hier -->";
    
      FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE));
      getch();
    
      return 0;
    }
    

Anmelden zum Antworten