Changes

Jump to: navigation, search

BIOF 20101 (AS1) - OOP344

556 bytes added, 13:47, 24 February 2010
m
Due date - deleted comma from due date
= Basic Input Output Function Set V1.1=
V1.1: added '''"int readonly"''' flag to the arguments of bio_edit() function.
== Due date ==
Due date: Feb,25 @ 23:59 <big> biomain.c V0.8 is released svn://zenit.senecac.on.ca/oop344/trunk/biomain.c</big>
== File Names ==
Save your work in biof.h for the header file and biof.c for the source of the library.<br/>
The test main will be is released as bioftestbiomain.c;<big> svn://zenit.senecac.on.ca/oop344/trunk/biomain.c<br /></big>
The functions in BIOF all share the same prefix '''''bio'''''.
 
The working sample of the biomain.c is on matrix.
login to your matrix account using putty and make sure you set your Terminal/Keyboard to Xterm R6.
 
then type:
<big>
~fardad.soleimanloo/biof
</big>
 
the biomain.c should run.
== Simple Functions ==
Note that the conditions of termination are changed if '''“IsTextEditor”''' flag is true (non-zero). See '''“IsTextEditor”''' section for detail.
If '''"ReadOnly"''' has a true value (non-zero) then any attempt to change the content of '''"str"''' should be ignoredend the function and return the key . Note that all other keys should work. (Function and Non-ASCII keys). This make the '''bio_edit()''' funciton "read only", but still user can scroll the text to left or right and etc....
The function returns an int identifying the key that was pressed to exit. (This function uses the same key codes as bio_getch())
Say the installation is done in '''X:\Borland\BCC55''' <br />
Create a file called '''bcc32.cfg''' in '''X:\Borland\BCC55\Bin''' and add the following two lines to it:
<prebig -I"X:\Borland\Bcc55\include" -L"X:\Borland\Bcc55\lib" </prebig>
Create another file called '''ilink32.cfg''' in '''X:\Borland\BCC55\Bin''' and add the following line to it:
<prebig -L"X:\Borland\Bcc55\lib" </prebig>
Then add '''X:\Borland\BCC55\Bin''' to the system path:<br />
Vista:
Compile your code as:
<prebig > bcc32 biomain.c ciolbiof.c</big>
</pre>You must restart your computer for changes to take affect!
'''Happy Compiling!'''
To compile using gcc issue the following command:<br />
<prebig> gcc biomain.c ciolbiof.c -lncurses</prebig>
or
<prebig> cc biomain.c ciolbiof.c -lncurses</prebig>
'''Also make sure you use [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Putty]for your telnet client and set the Temminal/keyboard / function keys to Xterm R6'''
1
edit

Navigation menu