<?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-8298147987399954335</id><updated>2012-03-20T03:04:29.319-07:00</updated><title type='text'>Feihong's blog</title><subtitle type='html'>OOP344(C/C++ programming)</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://feihong-xiong.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default'/><link rel='alternate' type='text/html' href='http://feihong-xiong.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Feihong</name><uri>http://www.blogger.com/profile/03456076045538158411</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>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8298147987399954335.post-252939690232535040</id><published>2009-11-22T22:59:00.000-08:00</published><updated>2009-11-22T23:06:46.979-08:00</updated><title type='text'>A problem of io_textedit in assignment2</title><content type='html'>i am doing io_textedit. In the class, it's hard to rearrange the offset of each line. for example, if i press the key of right arrow when the cursor is at the end of one line, all lines should be moved left by 1 character. That means the offset of all lines must be 1. can anyone give me a clue how to do it?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8298147987399954335-252939690232535040?l=feihong-xiong.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://feihong-xiong.blogspot.com/feeds/252939690232535040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://feihong-xiong.blogspot.com/2009/11/problem-of-iotextedit-in-assignment2.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/252939690232535040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/252939690232535040'/><link rel='alternate' type='text/html' href='http://feihong-xiong.blogspot.com/2009/11/problem-of-iotextedit-in-assignment2.html' title='A problem of io_textedit in assignment2'/><author><name>Feihong</name><uri>http://www.blogger.com/profile/03456076045538158411</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-8298147987399954335.post-8301536548670327574</id><published>2009-10-08T22:37:00.000-07:00</published><updated>2009-10-09T02:21:22.988-07:00</updated><title type='text'>graphs in assignment1</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_HHhI2ce0Tgw/Ss73X9DN1xI/AAAAAAAAAAU/VRi2dRBYJL8/s1600-h/lineeditor.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 215px;" src="http://1.bp.blogspot.com/_HHhI2ce0Tgw/Ss73X9DN1xI/AAAAAAAAAAU/VRi2dRBYJL8/s400/lineeditor.jpg" alt="" id="BLOGGER_PHOTO_ID_5390517794906167058" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss744bgKZ9I/AAAAAAAAAAk/s4ixoYt7Pok/s1600-h/example1.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 189px;" src="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss744bgKZ9I/AAAAAAAAAAk/s4ixoYt7Pok/s400/example1.jpg" alt="" id="BLOGGER_PHOTO_ID_5390519452348082130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;_____________________________________&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;test9.1 of assignment1:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_HHhI2ce0Tgw/Ss79n9PSiWI/AAAAAAAAAAs/Iyt4YLIyXmw/s1600-h/example2.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 164px;" src="http://2.bp.blogspot.com/_HHhI2ce0Tgw/Ss79n9PSiWI/AAAAAAAAAAs/Iyt4YLIyXmw/s400/example2.jpg" alt="" id="BLOGGER_PHOTO_ID_5390524666904480098" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;      if *curpos &gt;= fieldlen, *curpos = fieldlen-1;&lt;br /&gt;&lt;br /&gt;__________________________________________&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;test9.2 :&lt;/span&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss7-fdueGEI/AAAAAAAAAA8/qXX7gRYRuyw/s1600-h/example4.jpg"&gt;&lt;img style="cursor: pointer; width: 400px; height: 166px;" src="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss7-fdueGEI/AAAAAAAAAA8/qXX7gRYRuyw/s400/example4.jpg" alt="" id="BLOGGER_PHOTO_ID_5390525620518000706" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;    if *offset &gt; length of string, *offset = length of string&lt;br /&gt;&lt;br /&gt;____________________________________&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;test9.3:&lt;/span&gt;&lt;br /&gt;&lt;a style="font-weight: bold;" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss79zPD7vKI/AAAAAAAAAA0/6VhhPuOSTL8/s1600-h/example3.jpg"&gt;&lt;img style="cursor: pointer; width: 356px; height: 214px;" src="http://4.bp.blogspot.com/_HHhI2ce0Tgw/Ss79zPD7vKI/AAAAAAAAAA0/6VhhPuOSTL8/s400/example3.jpg" alt="" id="BLOGGER_PHOTO_ID_5390524860667247778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;   if *curpos&gt; length of string, *curpos=length of string&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8298147987399954335-8301536548670327574?l=feihong-xiong.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://feihong-xiong.blogspot.com/feeds/8301536548670327574/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://feihong-xiong.blogspot.com/2009/10/graphs-in-assignment1.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/8301536548670327574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/8301536548670327574'/><link rel='alternate' type='text/html' href='http://feihong-xiong.blogspot.com/2009/10/graphs-in-assignment1.html' title='graphs in assignment1'/><author><name>Feihong</name><uri>http://www.blogger.com/profile/03456076045538158411</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><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_HHhI2ce0Tgw/Ss73X9DN1xI/AAAAAAAAAAU/VRi2dRBYJL8/s72-c/lineeditor.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-8298147987399954335.post-6673020618445911748</id><published>2009-09-21T18:29:00.000-07:00</published><updated>2009-09-21T20:08:33.576-07:00</updated><title type='text'>OOP344 Challenge1</title><content type='html'>assume the integer&gt;0&lt;br /&gt;&lt;br /&gt;GetInt(char *strint, int val){&lt;br /&gt;&lt;br /&gt;int i, temp = val, len = 1;&lt;br /&gt;&lt;br /&gt;//count the length of val&lt;br /&gt;while((val /= 10)&gt;0)&lt;br /&gt;len++;&lt;br /&gt;&lt;br /&gt;//write char in array&lt;br /&gt;strint[len] = '\0';&lt;br /&gt;for(i = len-1; i &gt;= 0; i--){&lt;br /&gt;      strint[i] = temp % 10 + 48;&lt;br /&gt;      temp /= 10;&lt;br /&gt;}&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/8298147987399954335-6673020618445911748?l=feihong-xiong.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://feihong-xiong.blogspot.com/feeds/6673020618445911748/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://feihong-xiong.blogspot.com/2009/09/oop344-challenge1.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/6673020618445911748'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8298147987399954335/posts/default/6673020618445911748'/><link rel='alternate' type='text/html' href='http://feihong-xiong.blogspot.com/2009/09/oop344-challenge1.html' title='OOP344 Challenge1'/><author><name>Feihong</name><uri>http://www.blogger.com/profile/03456076045538158411</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></feed>
