CONIO.H
Functions
cgets - cgets read a string of
characters from the
console
and stores the string(and the string length) in
the
location *str.
clreol - clears all characters from the
cursor position
to the
end of the line within the current text window,
without
moving the cursor.
clrscr - clrscr clears the current text
window and
places
the cursor in the upper left-hand corner (at
position
1,1).
cprintf - sends formatted output to the
text window on
the
screen.
cputts - write the null-terminated string
str to the
current
text window. It does not append a newline
character.
cscanf - scans and formats input from the
console.
delline - deletes the line containing the
cursor and
moves all
lines below it one line up.
getch - gets a character from the
console but does not
echo to
the screen.
getche - gets a character from the
console and echoes
to the
screen.
getpass - reads a password from the system
console,
after
prompting with the null-terminated string prompt
and
disabling the echo.
gettext - copies text from text-mode
screen to memory
gettextinfo
- fills in
a structure with the current text video information.
gotyxy - moves the cursor to the given
position in the
current
text window.
highvideo
- selects
high-intensity text characters
insline - inserts and empty line in the
text window at
the
cursor position using the current text background
color.
inp - reads a byte from a hardware
port
inport - inport works just like the 80x86
instruction
IN. It reads the low byte of a
word from portid, the high byte from portid + 2
inportb - is a macro that reads a
byte
inpw - reads a word from a hardware
port
kbhit - checks to see if a keystroke is
currently available.
lowvideo
- selects
low-intensity text characters
normvideo
- selects normal-intensity text characters
outp -outputs a byte to a hardware port
outport - works
like the 80x86 instruction OUT. It writes the low byte if value to portid, the
high byte to portid + 1
outportb - is a macro that writes value.
outpw - outputs a word to a hardware port.
putch - outputs
the character c to the currect text window. It is a text-mode function
that performs direct video output to the console.
puttext - copies text from memory to text-mode screen.
setcursortype - selects the cursor appearance.
textattr - sets text attributes for text-window functions
textbackground
- selects a new text background
color
textcolor
- selects a new character color in
text mode.
textmode - selects a specific text mode.
ungetch - pushes the character ch back to the console,
causing ch to be the next character read.
wherex - returns
the x-coordinate of the current cursor position (within the current text
window.)
wherey - returns
the y-coordinate of the current cursor position (within the current text
window.)
window - defines active text-mode window
IOSTREAM.H
-
Declares the C++2.0 basic streams
-
Replaces the older STREAM.H header file.
Classes
ios - provides operations common to both input and
output.
iostream_withassign
- This class is an iostream with
two added assignment operators.
istream_withassign
- This class is an istream with two
added assignment operators.
ostream_withassign
- This class is an ostream with two
added assignment operators.
iostream - This class is a mixture of its
base classes
fstream
and strstream, allowing both input and output
on
stream.
istream - Provides formatted and unformatted input from
a derived class of class
streambuf via data member bp
of base class ios.
ostream - Provides formatted and unformatted output to
a derived class of class
streambuf, This occurs via
data member bp of base class ios.
streambuf
- This is a buffer-handling class.
- Your applications gain access
to buffer and buffering functions through a pointer to streambuf that is set by
ios.
STDIO.H
Functions
clearerr - resets the names stream's error and end-of-file indicators
to 0.
fclose - closes the named stream
fcloseall - closes all open streams except stdin, stdout, stdprn,
stderr, and stdaux.
fdopen - associates a stream with a file handle.
feof - is a macro that tests the given stream for an end-of-file
indicator.
ferror - is a macro that tests the given stream for a read or
write error.
fflush - If the given stream has buffered output, fflush writes the
output for stream to the associated file.
fgetc - gets a character from a stream.
fgetchar - get a character from stdin
fgetpos - gets the current file pointer position.
fgets - gets a string from a stream.
fileno - is a macro that returns the file handle for the stream.
flushall - clears all buffer associated with open input streams,
and writes all buffers associated with open output streams to their respective
files.
fopen - opens a stream.
fprintf - sends formatted output to a stream.
fputc - outputs a character to a stream.
fputchar - outputs a character to stdout.
fputs - outputs a string to a stream.
fread - reads a specified number of equal-sized data items from an
input stream into a block.
freopen - associates a new file with an open stream.
fscanf - Scans and formats input from a stream.
fseek - sets the file pointer associated with a stream to a new
position.
fsetpos - positions the file pointer of a stream.
ftell - returns the current file pointer for stream.
fwrite - appends a specificied number of equal-sized data items to
an output file.
getc - is a macro that gets one character from a stream.
getchar - is a macro that gets a character from stdin.
gets - gets a string from stdin.
getw - gets an integer from stream.
perror - prints to the stderr stream (nirmally the console) the
system error message for the last library routine that produced the
error.
printf - sends formatted output to a stdin.
putc - is a macro that outputs a character to a stream.
putchar - is a macro that outputs a charater on stdout.
puts - outputs a string to stdout (and appends a newline
character).
putw - outputs an integer on a stream.
remove - If your file is open, be sure to close it before
removing it.
rename - changers the name of a file from oldname to newname.
rewind - repositions file pointer to stream's beginning.
rmtmp - closes and deletes all open temporary file streams, which
were previously created with tmpfile.
scanf - Scans and formats input from a stdin.
setbuf - if buf is null, I/O will be unbuffered. Otherwise, it will
be fully buffered.
setvbuf - if buf is null, a buffer will be allocated using malloc.
sprintf - sends formatted output to a string.
sscanf - Scans and formats input from a string.
strerror - returns a pointer to an error message string.
_strerror - builds a customized error message.
tempnam - creates a unique file name in arbitrary directries.
tmpfile - creates a temporary binary file and opens it for update
(w+b)
tmpnam - creates a unique file name, which can safely be used as the
name of a temporary file.
ungetc - pushes the character c back onto the named input stream,
which must be open for reading.
unlink - deletes a file specified by filename. Any DOS drive, path,
and file name can be used as filename. Wildcards are not allowed.
vfprintf - sends formatted output to a stream, using an argument list.
vfscanf - Scans and formats input from a stream, using an argument
list.
vprintf - sends formatted output to a stdin, using an argument list.
vscanf - Scans and formats input from a stdin, using an argument
list.
vsprintf - sends formatted output to a string using an argument list.
vsscanf - Scans and formats input from a string, using an argument
list.
0 comments:
Post a Comment