<?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-394346784520414372</id><updated>2012-02-16T17:52:05.905-08:00</updated><title type='text'>OOP344</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-394346784520414372.post-7571367122988975484</id><published>2010-02-17T06:08:00.000-08:00</published><updated>2010-02-17T06:14:16.000-08:00</updated><title type='text'>A simple file copy program</title><content type='html'>int main(int argc, char* argv[]){&lt;br /&gt;char copy;&lt;br /&gt;&lt;br /&gt;FILE* fr=fopen(argv[1],"r");&lt;br /&gt;FILE* fw=fopen(argv[2], "w");&lt;br /&gt;&lt;br /&gt;while(fscanf(fr,"c%", &amp;amp;copy){&lt;br /&gt;fprintf(fw,"c%", copy);&lt;br /&gt;}&lt;br /&gt;return 0;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-7571367122988975484?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/7571367122988975484/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/simple-file-copy-program.html#comment-form' title='38 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/7571367122988975484'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/7571367122988975484'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/simple-file-copy-program.html' title='A simple file copy program'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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>38</thr:total></entry><entry><id>tag:blogger.com,1999:blog-394346784520414372.post-8983406563084511362</id><published>2010-02-10T05:25:00.001-08:00</published><updated>2010-02-10T06:52:40.464-08:00</updated><title type='text'>pointer to function and flush for input</title><content type='html'>double (*fptr)(char * , int)&lt;br /&gt;fptr = foo;&lt;br /&gt;C: a = (*fptr)(".....", 23)&lt;br /&gt;C++: a fptr("......", 23)&lt;br /&gt;&lt;br /&gt;after scanf............&lt;br /&gt;fflush(stdio);&lt;br /&gt;can clear all the unneed input!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-8983406563084511362?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/8983406563084511362/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/pointer-to-function-and-flush-for-input.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/8983406563084511362'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/8983406563084511362'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/pointer-to-function-and-flush-for-input.html' title='pointer to function and flush for input'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-5558461018239366277</id><published>2010-02-08T08:32:00.000-08:00</published><updated>2010-02-08T08:39:58.383-08:00</updated><title type='text'>Integer Array</title><content type='html'>a[5][4][3][2][1]&lt;br /&gt;the pointer for this array ..in step is.&lt;br /&gt;*(a[5][4][3][2]+1)&lt;br /&gt;*(*(a[5][4][3]+2)+1)&lt;br /&gt;*(*(*(a[5][4]+3)+2)+1)&lt;br /&gt;*(*(*(*(a[5]+4)+3)+2)+1)&lt;br /&gt;*(*(*(*(*(a+5)+4)+3)+2)+1)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-5558461018239366277?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/5558461018239366277/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/integer-array.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/5558461018239366277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/5558461018239366277'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/02/integer-array.html' title='Integer Array'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-859929382795666806</id><published>2010-01-29T07:10:00.000-08:00</published><updated>2010-01-29T07:58:25.094-08:00</updated><title type='text'>OOP WEEK 3 Challenge....</title><content type='html'>void bio_putint(int val){&lt;br /&gt;  int i;&lt;br /&gt;int x;&lt;br /&gt;int temp[99];&lt;br /&gt;  int length;&lt;br /&gt;  for (i = 1, length = 0; val / i != 0 ; i *= 10, length++);&lt;br /&gt;  for(i = length,x = 0 ; i &gt;0; temp[x]=(val/(10^(i-1))%10+48), i--, x++);&lt;br /&gt;bio_putch(temp);&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-859929382795666806?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/859929382795666806/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/oop-week-3-challenge.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/859929382795666806'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/859929382795666806'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/oop-week-3-challenge.html' title='OOP WEEK 3 Challenge....'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-6800906386311933351</id><published>2010-01-27T17:59:00.000-08:00</published><updated>2010-01-27T18:07:27.206-08:00</updated><title type='text'>Third Week OOP NOTE</title><content type='html'>Pointer: it alway have the same size&lt;br /&gt;               P = &amp;i;&lt;br /&gt;               i+= 10\&lt;br /&gt;                            -same&lt;br /&gt;              *p+=10/&lt;br /&gt;&lt;br /&gt;ASS(1):there is a new folder create in the trunk called PRJ that have all the code for the assignment 1 (going to be)&lt;br /&gt;&lt;br /&gt;Define statment: equal to search and replace before compliation&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-6800906386311933351?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/6800906386311933351/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/third-week-oop-note.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/6800906386311933351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/6800906386311933351'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/third-week-oop-note.html' title='Third Week OOP NOTE'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-410100239523245013</id><published>2010-01-21T15:16:00.000-08:00</published><updated>2010-01-21T15:46:11.566-08:00</updated><title type='text'>Second Week OOP NOTE</title><content type='html'>SVN:-&gt;&lt;br /&gt;1.Before commit need to everyone confirm.&lt;br /&gt;2.The code in the trunk must in the compliate state.&lt;br /&gt;3.All the command can taget to a &lt;span id="result_box" class="short_text"&gt;&lt;span style="background-color: rgb(255, 255, 255);" title="特定"&gt;specific file.&lt;br /&gt;4.Example  for check out in matrix: svn co svn://zenit.senecac.on.ca/oop344&lt;br /&gt;5.only the the file end with .vcproj and code file&lt;br /&gt;&lt;br /&gt;C:-&gt;&lt;br /&gt;LOOP function:&lt;br /&gt;for(i=0; i&lt;10; i++);{&lt;br /&gt;         print("%d", a[i]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;for (i=0; i&gt;10; printf("%d",a[i++]));&lt;br /&gt;&lt;br /&gt;swith(___){&lt;br /&gt;case V1;&lt;br /&gt;break;&lt;br /&gt;case V2;&lt;br /&gt;break;&lt;br /&gt;case V3;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;(%u -&gt; unsign integer)&lt;br /&gt;&lt;br /&gt;RAM:&lt;br /&gt;it is a template place to store value&lt;br /&gt;&amp;amp;i -&gt; address of i.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-410100239523245013?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/410100239523245013/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/second-week-oop-note.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/410100239523245013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/410100239523245013'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/second-week-oop-note.html' title='Second Week OOP NOTE'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-7718186907172448449</id><published>2010-01-13T08:32:00.000-08:00</published><updated>2010-01-13T08:42:54.142-08:00</updated><title type='text'>OOP344 Witer First Week NOTE</title><content type='html'>SVN://zenit.senecac.on.ca/oop344&lt;br /&gt;&lt;br /&gt;CHECK OUT = Get&lt;br /&gt;Commit = Put&lt;br /&gt;&lt;br /&gt;OOP NOTE:&lt;br /&gt;i++ ; //integer add one after&lt;br /&gt;++i; //integer add one before&lt;br /&gt;&lt;br /&gt;Too main type of variable: Float  and Integer&lt;br /&gt;Integer-&gt;                    Float-&gt;&lt;br /&gt;Char:1                          Double: Mid&lt;br /&gt;Int:?                             Float: Low&lt;br /&gt;Short:2                        Long double: high&lt;br /&gt;Long:4&lt;br /&gt;Long Long:8&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-7718186907172448449?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/7718186907172448449/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/oop344-witer-first-week-note.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/7718186907172448449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/7718186907172448449'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2010/01/oop344-witer-first-week-note.html' title='OOP344 Witer First Week NOTE'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-940615066376126746</id><published>2009-11-01T20:44:00.000-08:00</published><updated>2009-11-01T20:46:32.363-08:00</updated><title type='text'>OOP Group Assignment</title><content type='html'>For this group assignment..I need to work on the IO_MenuBar class......&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-940615066376126746?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/940615066376126746/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2009/11/oop-group-assignment.html#comment-form' title='1 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/940615066376126746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/940615066376126746'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2009/11/oop-group-assignment.html' title='OOP Group Assignment'/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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-394346784520414372.post-3175323983290719855</id><published>2009-09-17T12:50:00.000-07:00</published><updated>2009-09-18T15:24:56.636-07:00</updated><title type='text'></title><content type='html'>This week is the second week in the semester......Hope everything going to be ok!&lt;br /&gt;&lt;span class="texthead"&gt;Derived Classes with Depth&lt;/span&gt;        &lt;br /&gt;This is contain Constructors and Destructor, Copy Constructor and Assignment Operator.&lt;br /&gt;thought this is not very hard....but I was really confuse when I using it in the first time....&lt;br /&gt;&lt;p&gt;A derived class that accesses resources has depth through one        or more of its instance variables.  We know that a class        that accesses resources requires explicit definitions of its        constructor(s), copy constructor, assignment operator and        destructor.  Without such definitions, the compiler would        insert definitions that only duplicate the instance variables,        that do not allocate or deallocate memory for the resources        accessed, and that do not duplicate the resources referred to by        the resource instance variable(s). &lt;/p&gt;         &lt;p&gt;A derived class with depth requires explicit definitions of        its own constructor(s), copy constructor, assignment operator        and destructor.  If we define a constructor and assignment        operator for a derived class, we need to call the base class        counterparts explicitly.  In the absence of a call to the        base class constructor, the compiler inserts a call to the        no-argument constructor.  However, the compiler does not        insert any call to the base class assignment operator.         Note also that the compiler always inserts a call to the base        class destructor from the derived class destructor.&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/394346784520414372-3175323983290719855?l=shunyao-cpa.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://shunyao-cpa.blogspot.com/feeds/3175323983290719855/comments/default' title='帖子评论'/><link rel='replies' type='text/html' href='http://shunyao-cpa.blogspot.com/2009/09/this-week-is-second-week-in-semester.html#comment-form' title='0 条评论'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/3175323983290719855'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/394346784520414372/posts/default/3175323983290719855'/><link rel='alternate' type='text/html' href='http://shunyao-cpa.blogspot.com/2009/09/this-week-is-second-week-in-semester.html' title=''/><author><name>shun yao zhang</name><uri>http://www.blogger.com/profile/13403110294635248743</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>
