Trouver un fichier de code source :
   

Version Française - English Version
Accueil > 

C++

 > 

DESSINER UNE ARBRE BINAIRE( MODE CONSOLE):

 > 

BT bell/conio/conio/conio.h


DESSINER UNE ARBRE BINAIRE( MODE CONSOLE):

BT bell/conio/conio/conio.h


Informations sur ce code source

Cliquez pour voir la capture en taille normale
Code Source DESSINER UNE ARBRE BINAIRE( MODE CONSOLE):
Auteur benzarabel
Fichier BT bell/conio/conio/conio.h en C / C++ / C++.NET
Publié le 16/11/2011

Bonjour; car il est défficile d'imaginer la représentation d'une arbre binaire, je vous présente un code en c qui dessin une arbre binaire de recherche sur le console. Voir le Snapshot (capture) pour etre convaincus de télecharger le code :)
 

Fichier : BT bell/conio/conio/conio.h

Nombre de lignes : 182 lignes


Afficher ce fichier en plein écran
  • /* A conio implementation for Mingw/Dev-C++.
  • * version 1.2
  • *
  • * Written by:
  • * Hongli Lai <hongli@telekabel.nl>
  • * tkorrovi <tkorrovi@altavista.net> on 2002/02/26.
  • * Andrew Westcott <ajwestco@users.sourceforge.net>
  • * Adrian Sandor <aditsu@yahoo.com> 2004/11/07
  • *
  • * Offered for use in the public domain without any warranty.
  • */
  • /*
  • * mingw conio.h information:
  • *
  • * Low level console I/O functions. Pretty please try to use the ANSI
  • * standard ones if you are writing new code.
  • *
  • * This file is part of the Mingw32 package.
  • *
  • * Contributors:
  • * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
  • *
  • * THIS SOFTWARE IS NOT COPYRIGHTED
  • *
  • * This source code is offered for use in the public domain. You may
  • * use, modify or distribute it freely.
  • *
  • * This code is distributed in the hope that it will be useful but
  • * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  • * DISCLAIMED. This includes but is not limited to warranties of
  • * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  • *
  • * $Revision: 1.4 $
  • *
  • */
  • /* Some of the code below was part of Mingw's conio.h */
  • #ifndef _CONIO_H_
  • #define _CONIO_H_
  • /* All the headers include this file. */
  • #include <_mingw.h>
  • #ifndef RC_INVOKED
  • #ifdef __cplusplus
  • extern "C" {
  • #endif
  • typedef enum
  • {
  • BLACK,
  • BLUE,
  • GREEN,
  • CYAN,
  • RED,
  • MAGENTA,
  • BROWN,
  • LIGHTGRAY,
  • DARKGRAY,
  • LIGHTBLUE,
  • LIGHTGREEN,
  • LIGHTCYAN,
  • LIGHTRED,
  • LIGHTMAGENTA,
  • YELLOW,
  • WHITE
  • } COLORS;
  • #define BLINK 0
  • #define _NOCURSOR 0
  • #define _SOLIDCURSOR 100
  • #define _NORMALCURSOR 25
  • /* console info */
  • typedef struct
  • {
  • unsigned char winleft, wintop, winright, winbottom,
  • attribute, normattr, currmode, screenheight, screenwidth, curx, cury;
  • } text_info;
  • typedef struct
  • {
  • int left, top, right, bottom, width, height, totalwidth, totalheight,
  • maxwidth, maxheight, attr, cx, cy;
  • } con_info;
  • /* conio functions defined in msvcrt */
  • char* _cgets (char*);
  • int _cprintf (const char*, ...);
  • int _cputs (const char*);
  • int _cscanf (char*, ...);
  • int _getch ();
  • int _getche ();
  • int _kbhit ();
  • int _putch (int);
  • int _ungetch (int);
  • #define cgets _cgets
  • #define cprintf _cprintf
  • #define cputs _cputs
  • #define cscanf _cscanf
  • int getch ();
  • int getche ();
  • int kbhit ();
  • int putch (int);
  • int ungetch (int);
  • /* other conio functions */
  • void clrscr();
  • void clreol();
  • void gotoxy(int x, int y);
  • int wherex();
  • int wherey();
  • void textattr(int attr);
  • void textbackground(int color);
  • void textcolor(int color);
  • void insline();
  • void delline();
  • /* 1.2: workaround for a gcc issue with the gettext identifier */
  • int _gettext(int left, int top, int right, int bottom, void*buf);
  • #define gettext _gettext
  • int puttext(int left, int top, int right, int bottom, void*buf);
  • int movetext(int left, int top, int right, int bottom, int newleft, int newtop);
  • void gettextinfo(text_info *r);
  • void _setcursortype(int type);
  • /* delay functions; they were originally in dos.h */
  • void delay(unsigned msec);
  • void sleep(unsigned sec);
  • /* new useful functions; all of them use 0-based coordinates */
  • void con_wherexy(int*x, int*y);
  • void con_gotoxy(int x, int y);
  • void con_getinfo(con_info*inf);
  • void con_setwindow(int left, int top, int right, int bottom);
  • void con_resize(int width, int height);
  • void con_setbuffer(int width, int height);
  • void con_crop();
  • void con_settitle(const char*str);
  • void con_fillchar(char c, int n, int x, int y);
  • void con_fillattr(int fg, int bg, int n, int x, int y);
  • void con_fill(char c, int fg, int bg, int n, int x, int y);
  • void con_fillcr(char c, int n, int x, int y);
  • int con_get(int left, int top, int right, int bottom, void*buf);
  • int con_put(int left, int top, int right, int bottom, void*buf);
  • int con_getchars(int left, int top, int right, int bottom, char *str);
  • int con_putchars(int left, int top, int right, int bottom, char *str);
  • int con_getattrs(int left, int top, int right, int bottom, int*buf);
  • int con_putattrs(int left, int top, int right, int bottom, int*buf);
  • void con_scroll(int left, int top, int right, int bottom, int newleft, int newtop);
  • void con_scrollup(int left, int top, int right, int bottom);
  • void con_scrolldown(int left, int top, int right, int bottom);
  • void con_scrollleft(int left, int top, int right, int bottom);
  • void con_scrollright(int left, int top, int right, int bottom);
  • /* todo: implement djgpp libc conio functions?
  • http://www.delorie.com/djgpp/doc/libc/libc_4.html */
  • #ifdef __cplusplus
  • }
  • #endif
  • #endif /* Not RC_INVOKED */
  • #endif /* Not _CONIO_H_ */


Liste des fichiers du ZIP

FichierTaille
BT bell/BinaryTree/BinaryTree.cbp1,14 Ko
BT bell/BinaryTree/BinaryTree.depend563 o
BT bell/BinaryTree/BinaryTree.layout340 o
BT bell/BinaryTree/main.c1004 o
BT bell/BinaryTree/obj/Debug/main.o3,02 Ko
BT bell/BinaryTree/obj/Debug/tree.o8,19 Ko
BT bell/BinaryTree/tree.c6,72 Ko
BT bell/BinaryTree/tree.h815 o
BT bell/conio/conio/conio.h4,6 Ko
BT bell/conio/conio/libconio.a11,24 Ko
BT bell/conio/how to install.txt562 o
BT bell/snapshot.jpg52,34 Ko

Pour télécharger le zip au complet, veuillez vous rendre sur cette page :
Télécharger DESSINER UNE ARBRE BINAIRE( MODE CONSOLE):


Sources du même auteur ayant un ZIP


Voir la suite...


Sources du même langage comportant un zip


Voir la suite...





Logiciels à télécharger...

  • Easy-Planning (4.5.0.11)
    Easy-Planning (4.5.0.11)
    Easy-Planning permet de créer des plannings sous la représentation de diagrammes et est adapté aux petites et moyennes entreprises(PME). Easy-Planning permet la création de plannings prévisionnels, p...
  • CVEasy (3.1.0.51)
    CVEasy (3.1.0.51)
    PHMSD-CVEasy est un logiciel d'aide à la rédaction de CV d'une simplicité déconcertante. PHMSD-CVEasy vous assistera pour la rédaction de votre CV, le CV de vos amis ou de membres de votre famille, m...
  • LettresFaciles 2011 (8.6.0.31)
    LettresFaciles 2011 (8.6.0.31)
    LettresFaciles est un logiciel facilitant la création et la rédaction de lettres types. Son interface simple d'utilisation mais suffisamment complète vous permettra de créer une multitude de lettres....

Sondage...

Le top des photos

Photo ??Photo ???????????????
Photo ????????Photo ????????
 

Développement réalisé par Nicolas SOREL (Nix) et Emmanuel (EBArtSoft) avec l'aide de Cyril DURAND, Merci à Vincent pour ses précieux conseils
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés
Temps d'éxécution de la page : 0,81 sec