<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-4194902779074136822</id><updated>2011-07-07T23:45:00.137-07:00</updated><title type='text'>Open Source Related</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>11</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-4115473633891681222</id><published>2010-01-08T19:47:00.001-08:00</published><updated>2010-01-08T19:55:53.147-08:00</updated><title type='text'>OOP344 - assignment 2, fix bugs together</title><content type='html'>I tested our project today. There are still a lot of bugs in it. I realized the bugs needs the whole group work together to fix it, not only one person. For example, if the bug is at IO_Form, my part is IO_Edit, it doesn't mean I have to wait until IO_Form is fixed by the person who did that part, I also can fix it. Now it is too late for me to understand this. I hope my experience can give more people a help.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-4115473633891681222?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/4115473633891681222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2010/01/oop344-assignment-2-fix-bugs-together.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/4115473633891681222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/4115473633891681222'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2010/01/oop344-assignment-2-fix-bugs-together.html' title='OOP344 - assignment 2, fix bugs together'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-3187682117247928028</id><published>2010-01-06T09:02:00.000-08:00</published><updated>2010-01-06T09:04:24.485-08:00</updated><title type='text'>OOP344 - Assignment 2 about void(*_help)(messageStatus,IO_Form)</title><content type='html'>Here I got response from other group member - Ausley Lettroy Johnson.&lt;br /&gt;Thanks.&lt;br /&gt;------------------------------------------------------------------------------&lt;br /&gt;RESOPNSE TO QUESTIONS BY FELLOW STUDENTS&lt;br /&gt;Note:    void(*_help)(messageStatus,IO_Form)&lt;br /&gt;The above “_help” is a pointer to a function or logic that are passed the two arguments.&lt;br /&gt;You use it like the following way:&lt;br /&gt;(_Help)(ClearMessage, (*_owner));&lt;br /&gt;Note: “*_owner” is a pointer to a form which controls all the fields and the fact that everything is done on a particular form, you have to be able to refer to it.&lt;br /&gt;Note:”ClearMessage” is a value withing the enum list which is declared in iodef.&lt;br /&gt;Note: The function logic has to be defined so that it processes the information passed to it. In this case, it gives a help message or clears the printed message at a particular location on the form. Help message might be date must be between a particular time.&lt;br /&gt;Bool (*_Validate)((char*)_data.(*_owner));&lt;br /&gt;Like help, this points to a logic that validates an entry. You also have to define the logic. What ever you want to validate that your form receives. The date etc.&lt;br /&gt;You call it like above “_help” passing an address to the data entered and the form that is being used.&lt;br /&gt;&lt;br /&gt;Question was: Do you initialize the pointer to the function logic? Yes&lt;br /&gt;How: &lt;br /&gt;bool (*Validate)(const char* , IO_Form&amp;) = ((void(*)(MessageStatus, IO_Form&amp;))(0))&lt;br /&gt;Note: NO_FUNC is defined in iodef which initializes the “*Validate”&lt;br /&gt;So you simply do within the class declaration&lt;br /&gt;bool (*Validate)(const char* , IO_Form&amp;) = NO_FUNC;&lt;br /&gt;REMEMBER to include iodef.h.&lt;br /&gt;Qusetion: How to use IO_Vedit display?&lt;br /&gt;Ans: Since vedit inherits edit, you simply call the display of edit which is the working class. Vedit is simply for validation and for help messages. Therefore the arguments passed to vedit constructor must be passed onto edit and when you are requested to edit you do the following:&lt;br /&gt;IO_Edit::edit();//The display code is within this function which makes editing possible.&lt;br /&gt;Note: The pointer to data in iofield does not need dynamic memory allocation from within that class. It simply holds the address for location already allocated memory within ioedit. Therefor “IO_Field::_data =  data.”&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Hope it helps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-3187682117247928028?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/3187682117247928028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2010/01/oop344-assignment-2-about.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3187682117247928028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3187682117247928028'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2010/01/oop344-assignment-2-about.html' title='OOP344 - Assignment 2 about void(*_help)(messageStatus,IO_Form)'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-7504405249299075253</id><published>2009-12-31T13:38:00.000-08:00</published><updated>2010-01-03T09:59:05.587-08:00</updated><title type='text'>OOP344 assignment 2 got help from other team</title><content type='html'>I checked other teams' wiki and found a lot of teams have already finished this assignment.&lt;br /&gt;So I ask other team members who were doing the same part IO_Edit and IO_Vedit for help.&lt;br /&gt;A lot of people replied me and I got a lot of help.&lt;br /&gt;Here, I want to thank Ausley Lettroy Johnson, Anton Chan, Justin Robertson, Armin Kumarshellahand and Demosthenes Denny Papagiannidis. Especially Demosthenes Denny Papagiannidis.&lt;br /&gt;I will tell this story to my team members who haven't finished the assignment to ask for help from other teams.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-7504405249299075253?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/7504405249299075253/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-assignment-2-got-help-from-other.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/7504405249299075253'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/7504405249299075253'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-assignment-2-got-help-from-other.html' title='OOP344 assignment 2 got help from other team'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-3330021500282136943</id><published>2009-12-28T16:31:00.000-08:00</published><updated>2009-12-28T16:42:44.638-08:00</updated><title type='text'>OOP344 - find a useful tool for tracking bugs.</title><content type='html'>&lt;a href="http://zenit.senecac.on.ca/wiki/index.php/OOP344_BITE"&gt;Bite team&lt;/a&gt; introduced a useful tool for tracking bugs - https://bite.fogbugz.com/.&lt;br /&gt;I checked it. It looks like a forum, but each column has special meaning, like case,title,status,opened by,remaining time,priority.&lt;br /&gt;I can use it for my future projects.&lt;br /&gt;for example: I'm testing a website functions. If I found a bug, I write it in the forum, I just continue writing. After several days, I come back to check if all those bugs are fixed or not. If it is fixed, I close it.&lt;br /&gt;If I'm a programmer, I just login the forum, check each notes, fix them one by one, and leave response there.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-3330021500282136943?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/3330021500282136943/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-find-useful-tool-for-tracking.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3330021500282136943'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3330021500282136943'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-find-useful-tool-for-tracking.html' title='OOP344 - find a useful tool for tracking bugs.'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-2702207970842829852</id><published>2009-12-28T14:25:00.000-08:00</published><updated>2009-12-28T15:04:36.405-08:00</updated><title type='text'>OOP344 - use svn at seneca@york</title><content type='html'>If you don't bring a notebook to school everyday, and you want to use lab computer to do assignment2 or review oop344 notes, you need svn. But lab computers don't have svn.&lt;br /&gt;I find a software called sharpsvn is very useful. No graphic interface, no need to install.&lt;br /&gt;what I do is :&lt;br /&gt;1. download the .7z file from my gmail account draft folder. (I just uploaded &lt;a href="http://software.w4u.ca/SharpSvn.rar" target="_blank"&gt;it&lt;/a&gt; to my web server, you can use 7-zip or winrar to unzip it. This one I used winrar to compress, about 8M. Because my web server don't know .7z files. If you use 7-zip to compress it again, it will be 4M.)&lt;br /&gt;2. unzipped it to c:\temp for an example.&lt;br /&gt;3. run cmd and in dos command type cd c:\temp\sharpsvn&lt;br /&gt;4. type svn export svn://&lt;a href="http://zenit.senecac.on.ca/oop344" target="_blank"&gt;zenit.senecac.on.ca/&lt;wbr&gt;oop344&lt;/a&gt; c:\temp\oop344&lt;br /&gt;5. type username and password&lt;br /&gt;6. all files will be extract to c:\temp\oop344 folder&lt;br /&gt;I use this way to review oop344 notes at school lab computers. It helped me a lot.&lt;br /&gt;Hope it will help you too.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-2702207970842829852?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/2702207970842829852/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-use-svn-at-senecayork.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/2702207970842829852'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/2702207970842829852'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-use-svn-at-senecayork.html' title='OOP344 - use svn at seneca@york'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-8924715266056399563</id><published>2009-12-28T13:55:00.000-08:00</published><updated>2009-12-28T15:05:22.621-08:00</updated><title type='text'>OOP344 - How do I use SVN at home</title><content type='html'>After using the svn, I found some difficulties when I update other person's files.&lt;br /&gt;I may have changed something in other person's part. Other person may not agree that. After I did a SVN update, what I have wrote for other person's are gone.&lt;br /&gt;What I'm doing now is:&lt;br /&gt;1. make a copy of the svn folder.&lt;br /&gt;2. I do everything in the copied folder.&lt;br /&gt;3. After I have done the changes, I copy my part code to the svn folder, and do a submit on my part code only.&lt;br /&gt;4. Then I do a SVN update, merge other person's code manully one by one to my copied folder.&lt;br /&gt;5. Then I continue debug the project in the copied folder.&lt;br /&gt;6. repeat from step 3 to 5 until the project finished.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-8924715266056399563?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/8924715266056399563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-how-do-i-use-svn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/8924715266056399563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/8924715266056399563'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-how-do-i-use-svn.html' title='OOP344 - How do I use SVN at home'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-6399582688043354067</id><published>2009-12-24T11:15:00.000-08:00</published><updated>2009-12-24T11:25:55.374-08:00</updated><title type='text'>OOP344 Assignment 2</title><content type='html'>I'm working on IO_Edit and IO_Vedit.&lt;br /&gt;IO_Vedit inherite IO_Edit.&lt;br /&gt;How about those ~IO_Vedit(), IO_Vedit::display(), IO_Vedit::set(const void *str), IO_Vedit::editable() const? Do I need to write something there?&lt;br /&gt;or just call ~IO_Edit(), IO_Edit::display(), IO_Edit::set(const void *str), IO_Edit::editable() const?&lt;br /&gt;What do I need to do in void (*_Help)(MessageStatus, IO_Form&amp;amp;), bool (*_Validate)(const char*, IO_Form&amp;amp;)?&lt;br /&gt;Thanks ahead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-6399582688043354067?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/6399582688043354067/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-assignment-2.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/6399582688043354067'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/6399582688043354067'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/12/oop344-assignment-2.html' title='OOP344 Assignment 2'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-1301539130052737189</id><published>2009-11-01T06:49:00.000-08:00</published><updated>2009-11-01T06:57:59.078-08:00</updated><title type='text'>some coding doesn't understand.</title><content type='html'>What are these following sentences mean?&lt;br /&gt;1. SNode(Dstring Data, SNode* next=(SNode*) 0);&lt;br /&gt;2. this-&gt;top = (SNode*)0;&lt;br /&gt;These sentences are shrinked. It should be several sentence for each.&lt;br /&gt;Can somebody help me extend those sentences?&lt;br /&gt;Thanks ahead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-1301539130052737189?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/1301539130052737189/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/11/some-coding-doesnt-understand.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/1301539130052737189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/1301539130052737189'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/11/some-coding-doesnt-understand.html' title='some coding doesn&apos;t understand.'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-2020179315554691665</id><published>2009-10-18T16:17:00.000-07:00</published><updated>2009-10-18T16:22:20.535-07:00</updated><title type='text'>OOP344 Assignment 1 compile under Borland C++</title><content type='html'>I followed the &lt;a href="http://zenit.senecac.on.ca/wiki/index.php/OOP344_Assignment_One#Windows_Borland_C.2B.2B"&gt;instruction&lt;/a&gt; and compiled my code.&lt;br /&gt;I got a lot of error:&lt;br /&gt;warning w8065 test.c 73: call to function 'io_init' with no prototype in function main&lt;br /&gt;many these kind of error.&lt;br /&gt;like all my functions are no prototype.&lt;br /&gt;What should I do under ciol.c?&lt;br /&gt;VCC and LINUX are past already.&lt;br /&gt;Thanks ahead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-2020179315554691665?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/2020179315554691665/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-compile-under.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/2020179315554691665'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/2020179315554691665'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-compile-under.html' title='OOP344 Assignment 1 compile under Borland C++'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-3882582916412854814</id><published>2009-10-18T09:24:00.001-07:00</published><updated>2009-10-18T09:30:19.987-07:00</updated><title type='text'>OOP344 assignment 1 compile on Matrix</title><content type='html'>I passed all 10 tests under vcc environment.&lt;br /&gt;I tried to compile the assignment 1 on matrix account.&lt;br /&gt;I use ssh to upload 3 files, test.c, ciol.c, ciol.h&lt;br /&gt;I changed PLATFORM PLT_LNX in ciol.h.&lt;br /&gt;I enter: gcc -o as1 test.c&lt;br /&gt;I got a lot of error.&lt;br /&gt;like this:&lt;br /&gt;ciol.c:618: error: 'F7_KEY' undeclared (first use in this function)&lt;br /&gt;ciol.c:619: error: 'F8_KEY' undeclared (first use in this function)&lt;br /&gt;ciol.c:620: error: 'F9_KEY' undeclared (first use in this function)&lt;br /&gt;actually, I have all the define in ciol.h&lt;br /&gt;#  if PLATFORM == PLT_LNX&lt;br /&gt;&lt;br /&gt;       #define UP 259&lt;br /&gt;       #define DOWN 258&lt;br /&gt;       #define LEFT 260&lt;br /&gt;       #define RIGHT 261&lt;br /&gt;       #define PGUP 339&lt;br /&gt;       #define PGDN 338&lt;br /&gt;       #define ENTER 10&lt;br /&gt;I think I missed some steps before do the gcc -o as1 test.c&lt;br /&gt;I didn't compile the ciol.c&lt;br /&gt;How to compile all this under linux?&lt;br /&gt;Thanks ahead.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-3882582916412854814?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/3882582916412854814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-compile-on-matrix.html#comment-form' title='9 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3882582916412854814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/3882582916412854814'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-compile-on-matrix.html' title='OOP344 assignment 1 compile on Matrix'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>9</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4194902779074136822.post-8692238915641325388</id><published>2009-10-17T15:39:00.000-07:00</published><updated>2009-10-17T16:57:03.644-07:00</updated><title type='text'>OOP344 assignment 1 IsTextEditor=1 left,right key problem</title><content type='html'>&lt;a href="http://zenit.senecac.on.ca/wiki/index.php/OOP344_Assignment_One"&gt;Assignment 1 Link&lt;/a&gt;&lt;br /&gt;IsTextEditor=1,&lt;br /&gt;leftkey and right key:&lt;br /&gt;case LEFT_KEY:&lt;br /&gt;  if ((*offset)&gt;4){&lt;br /&gt;    (*offset)-=4;&lt;br /&gt;    (*curpos)+=4;&lt;br /&gt;  }else{&lt;br /&gt;    (*curpos)+=(*offset);&lt;br /&gt;    (*offset)=0;&lt;br /&gt;    done=1;&lt;br /&gt;  }&lt;br /&gt;  break;&lt;br /&gt;case RIGHT_KEY:&lt;br /&gt;  if(io_len(str)-*offset-fieldlen&gt;4{&lt;br /&gt;     *offset = *offset +4;&lt;br /&gt;     *curpos=*curpos-4;&lt;br /&gt;  }else if(io_len(str)-*offset-fieldlen&gt;0){&lt;br /&gt;     *offset=io_len(str)-fieldlen;&lt;br /&gt;     *curpos=*curpos-io_len(str)+*offset+fieldlen;&lt;br /&gt;     done=1;&lt;br /&gt;  }&lt;br /&gt;  break;&lt;br /&gt;it can't pass test9.20&lt;br /&gt;how the left key and right key works. for example, if I click left key, what's the *curpos and *offset should be? I'm confusing about this.&lt;br /&gt;If I just put&lt;br /&gt;case RIGHT_KEY:&lt;br /&gt;case LEFT_KEY:&lt;br /&gt;done=1;&lt;br /&gt;break;&lt;br /&gt;it can pass test9.20. But I think this is not the correct answer.&lt;br /&gt;Anybody has some idea about this? I'm already two day behind the due day.&lt;br /&gt;Thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4194902779074136822-8692238915641325388?l=qinzhi2001.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qinzhi2001.blogspot.com/feeds/8692238915641325388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-istexteditor1.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/8692238915641325388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4194902779074136822/posts/default/8692238915641325388'/><link rel='alternate' type='text/html' href='http://qinzhi2001.blogspot.com/2009/10/oop344-assignment-1-istexteditor1.html' title='OOP344 assignment 1 IsTextEditor=1 left,right key problem'/><author><name>qinzhi</name><uri>http://www.blogger.com/profile/07519564787351948228</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry></feed>
