Difference between revisions of "PROJECTS"

From CDOT Wiki
Jump to: navigation, search
(Created page with '<p>projects of oop344</p>')
 
 
(29 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<p>projects of oop344</p>
 
<p>projects of oop344</p>
 +
 +
=IOF=
 +
[https://zenit.senecac.on.ca/wiki/index.php/Oop344_20102_-_iof_functions[iof functions]]
 +
<table border="1" cellspacing="0" cellpadding="4" style="  border:1px solid ; font-size:small; line-height:1.5;">
 +
 +
<tr style=" font-size:large;  border-top:1px solid #999; border-bottom:1px solid #999;">
 +
  <th>Simple Functions</th>
 +
  <th>  </th>
 +
 +
<tr>
 +
  <td>void iof_init(void)</td>
 +
  <td>Initializes the iof routines.</td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_end(void)</td>
 +
  <td>Shuts down the io routines and ensures that the cursor is not left in the middle of the screen, which may be partly filled with characters. </td>
 +
</tr>
 +
<tr>
 +
  <td>int iof_rows(void) </td>
 +
  <td>Returns the number of rows on the screen. </td>
 +
</tr>
 +
<tr>
 +
  <td>int iof_cols(void) </td>
 +
  <td>Returns the number of columns on the screen. </td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_clrscr(void) </td>
 +
  <td>Clears the screen and leaves the cursor in the upper left-hand corner of the screen. </td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_flush(void)</td>
 +
  <td>Ensures that any output sent to the screen is displayed on the screen (that is, this function flushes the output buffer).</td>
 +
</tr>
 +
<tr>
 +
  <td>int iof_getch(void)  </td>
 +
  <td>Returns the virtual key code identifying the key pressed by the user.  </td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_movecur(int r, int c)  </td>
 +
  <td>Positions the cursor at row r and column c, where row 0 is the top row and column 0 is the leftmost      column.</td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_putch(int c)</td>
 +
  <td>Displays the character c at the current cursor position and advances the cursor by one position to the right.  </td>
 +
</tr>
 +
<tr>
 +
  <td>void iof_prnstr(const char *s) </td>
 +
  <td>Displays the null-terminated string pointed to by s starting at the current cursor position.</td>
 +
</tr>
 +
</table>

Latest revision as of 13:20, 6 June 2010

projects of oop344

IOF

[iof functions]

Simple Functions
void iof_init(void) Initializes the iof routines.
void iof_end(void) Shuts down the io routines and ensures that the cursor is not left in the middle of the screen, which may be partly filled with characters.
int iof_rows(void) Returns the number of rows on the screen.
int iof_cols(void) Returns the number of columns on the screen.
void iof_clrscr(void) Clears the screen and leaves the cursor in the upper left-hand corner of the screen.
void iof_flush(void) Ensures that any output sent to the screen is displayed on the screen (that is, this function flushes the output buffer).
int iof_getch(void) Returns the virtual key code identifying the key pressed by the user.
void iof_movecur(int r, int c) Positions the cursor at row r and column c, where row 0 is the top row and column 0 is the leftmost column.
void iof_putch(int c) Displays the character c at the current cursor position and advances the cursor by one position to the right.
void iof_prnstr(const char *s) Displays the null-terminated string pointed to by s starting at the current cursor position.