⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme_consola.txt

📁 打方快 打方快 打方快 打方快 打方快 打方快
💻 TXT
字号:
/*************************************************************
CONSOLA.H
LIBRER虯 PARA AUMENTAR LA EXTENSI覰 
DE CONIO.H Y OTRAS EN VISUAL C++
(Da soporte a funciones como gotoxy, clrscr, etc.)

Antonio A.
Ayuda en C, C++ y Visual C++
http://ayudacpp.tripod.com.mx/
ayudacpp@tutopia.com
M閤ico, D.F.

趌tima actualizaci髇: 2-Enero-2003

ESTA LIBRERIA SE PUEDE DISTRIBUIR LIBREMENTE SIEMPRE Y CUANDO
SE ENTREGUE SIN MODIFICACIONES CON TODOS LOS ARCHIVOS ADJUNTOS
SOBRETODO SIN MODIFICAR LA FUENTE DONDE SE OBTUVO.
**************************************************************/

LIBRARY TO INCREASE THE EXTENSION 
OF CONIO.H AND OTHERS IN VISUAL C++ 
(It gives support to functions like gotoxy, clrscr, 
delay, textcolor, etc.)  
 



The library conio.h and others de Visual C++ for *Console programs (unlike its predecessors or those of Borland for example) already do not include some functions that are still enough useful (coverall at scholastic level) like: gotoxy, clrscr, textcolor, textbackground, delay, etc. At least they do not exist thus directly and with those names. An option is to manually do them using the Windows API for Console functions, or to thus use them directly. To consult the information on the library Wincon.h of Visual C++ for more details. 

The library Consola.h that appears here covers this apparent deficiency of Conio.h and others providing some functions that it had before (in Win16) to add certain compatibility with other applications. That is to say, if you have programs that use these functions, now already them will be able to compile in Visual C++ using this library!. 

So far the functions that contain are the following ones: 


*CONSOLE: applications that execute in a window style DOS. Any application C/C++ that uses like entry point the function main(), is said are of type console (consola in spanish).  




ORIGINAL OF CONIO.H  
clrscr  
void clrscr(void); 
Clean the screen in text mode and places the cursor in the upper left corner (in position 1,1). 
 
clreol  
void clreol(void); 
Clean from the current cursor position to the end of line, without moving the cursor. 
 
delline  
void delline(void); 
It eliminates all current line of the cursor position, moving everything what is under him a line upwards. The cursor does not move. 
 
insline  
void insline(void); 
It inserts new line in the current cursor position, moving everything a line downwards. The cursor does not move. The last line is lost. 
 
gotoxy  
void gotoxy(int x,int y); 
It moves the cursor position given by x,y (coordinated horizontally an vertical respectively). 
By default the screen is of 80 columns by 25 lines, where the upper left corner is the position: (x=1, y=1), and the lower right corner, the coordinate: (80,25).  

wherex 
wherey  
int wherex(void); 
int wherey(void); 
They respectively return x-coordinated and the and y-coordinated of current cursor position. 
If the text screen has the size by default of 80 columns by 25 lines, wherex() returns a number between 1 and 80, and wherey() between 1 and 25.  


textcolor  
void textcolor(int nuevocolor); 
It changes the color of the text. 
All the characters that are after a call this function will appear with this color in screen. The text that was before shown to call to this function will conserve its original color. 
The colors available as much for "textcolor" and "textbackground" are such that for its predecessors (from 0 to 15): 0 BLACK (negro)
1 BLUE (azul marino)
2 GREEN (verde perico)
3 CYAN (verde claro)
4 RED (rojo)
5 MAGENTA (morado o violeta)
6 BROWN (caf

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -