<?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-1873099110604882622</id><updated>2011-07-28T10:14:08.418-07:00</updated><category term='Seneca'/><title type='text'>Gamal Tawaf's blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-4806422022910864037</id><published>2010-02-25T21:09:00.000-08:00</published><updated>2010-02-25T21:24:45.879-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'>Memory Allocation</title><content type='html'>to Allocate memory is an easy process but to allocate memory properly is a tricky  part and it helps make you're program more efficient.&lt;br /&gt;So how to allocate memory properly :&lt;br /&gt;1- create a pointer to use it to pint at the memory.&lt;br /&gt;2- Allocate memory and set it or assign it to what you need .&lt;br /&gt;3- Use the Memory in you're program.&lt;br /&gt;4- De allocate the memory allocated.&lt;br /&gt;that seems pretty forward and easy but what really hard is when you find the memory is too big or too small for your data so you create another array ! wrong that causes a memory leak. The programmer needs to reallocate memory.&lt;br /&gt;How to reallocate memory :&lt;br /&gt;1-Create temporary pointer&lt;br /&gt;2- allocate the size of memory you  need to use .&lt;br /&gt;3- copy old data to new array .&lt;br /&gt;4- de allocate old memory.&lt;br /&gt;5- use the original pointer point to the new memory.&lt;br /&gt;6- Don't delete temporary pointer it's gonna be deleted automatically.&lt;br /&gt;The point of doing all of these is keeping your program out of pugs.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-4806422022910864037?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/4806422022910864037/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/02/memory-allocation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4806422022910864037'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4806422022910864037'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/02/memory-allocation.html' title='Memory Allocation'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-4852676412607927214</id><published>2010-02-08T17:20:00.000-08:00</published><updated>2010-02-08T17:44:30.347-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'>String Vs Charecters</title><content type='html'>I had a code thet used " " to display a single space but it gave me a crazy answer like it showed &lt;. I didn't know what to do so I asked freind&lt;br /&gt;this is the code : http://pastebin.ca/1790805  &lt;br /&gt;this is why it showed &lt; :&lt;br /&gt;&lt;tdot&gt; well i see one problem  &lt;br /&gt;&lt;tdot&gt; you probably want to use ' ' not " "    &lt;br /&gt;&lt;tdot&gt; " " is for a string and will add a null byte to the end...i dont know if that could be causing the problem or not &lt;br /&gt;&lt;tdot&gt; it should be ' ' not " "&lt;br /&gt;&lt;tdot&gt; " " is for strings, ' ' is for characters&lt;br /&gt;so I know now what was my problem and my code is&lt;br /&gt; working nicely now thanks tdot&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-4852676412607927214?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/4852676412607927214/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/02/string-vs-charecters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4852676412607927214'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4852676412607927214'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/02/string-vs-charecters.html' title='String Vs Charecters'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-954184984154709027</id><published>2010-01-21T15:23:00.000-08:00</published><updated>2010-01-21T15:37:57.157-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'>OOP344 - Using SVN</title><content type='html'>I learned today how to use SVN :&lt;br /&gt;1) Check out: to get the code out of the repository.&lt;br /&gt;2) Work with code :&lt;br /&gt;    A) add : is to add information to the repository.&lt;br /&gt;    B) Modify or Edit : to change and fix the code you have.&lt;br /&gt;3)Update : to make sure your code is up to date if any member has changed any thing .&lt;br /&gt;4) Commit : to commit the changes you've made to the code&lt;br /&gt; &lt;br /&gt;I learned that&lt;br /&gt; for (i=0,j=0;i&lt;10;i++,j++){//some code&lt;br /&gt;}&lt;br /&gt;is the same as&lt;br /&gt;i=0;&lt;br /&gt;j=0;&lt;br /&gt;while (i&lt;10){//somecode&lt;br /&gt;i++;&lt;br /&gt;j++;&lt;br /&gt;}&lt;br /&gt;and that&lt;br /&gt; for (&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;i=0,j=0&lt;/span&gt;;i&lt;10;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;i++,j++&lt;/span&gt;){//some code&lt;br /&gt;}&lt;br /&gt;it's okay to put two operations in the same place in the for loop as long as they are separated by comma&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;( ,&lt;/span&gt;)&lt;br /&gt;but it's ot okay to put two comma seprated  operations  at the condition part becuase it doesnt' make sense like&lt;br /&gt;for (&lt;span style="color: rgb(0, 0, 0);"&gt;i=0,j=0&lt;/span&gt;;&lt;span style="font-weight: bold; font-style: italic; color: rgb(255, 0, 0);"&gt;i&lt;10,j&lt;10&lt;/span&gt;;&lt;span style="color: rgb(0, 0, 0);"&gt;i++,j++&lt;/span&gt;){//some code&lt;br /&gt; }&lt;br /&gt;in this case which one is the condition so if you want them to be executed together you can join them with &amp;amp;&amp;amp; or ||&lt;br /&gt;&lt;br /&gt;I enjoyed learning these things&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-954184984154709027?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/954184984154709027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-using-svn.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/954184984154709027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/954184984154709027'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-using-svn.html' title='OOP344 - Using SVN'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-5156053634330447397</id><published>2010-01-18T12:09:00.000-08:00</published><updated>2010-01-18T12:10:06.504-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'>OOP344 class Canceled</title><content type='html'>I've been looking forward to take the assessment test in the OOP344 class but the teacher canceled the class because he was sick.I wish he gets better for next class and I hope I won't be late to class as last time.OOP344 is looking very nice I've learned some stuff that I didn't know about. The teacher is great he keeps us active the whole class.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-5156053634330447397?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/5156053634330447397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-class-canceled.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/5156053634330447397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/5156053634330447397'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-class-canceled.html' title='OOP344 class Canceled'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-4292371151214863435</id><published>2010-01-16T13:57:00.000-08:00</published><updated>2010-01-16T14:02:25.123-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'>OOP344 calss</title><content type='html'>I had a nice class last week,I was an hour late though.We studied about SVN .We are gonna have a quiz next week .The first week was nice as expected.I wish that the rest of the semester stay the same.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-4292371151214863435?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/4292371151214863435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-calss.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4292371151214863435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/4292371151214863435'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop344-calss.html' title='OOP344 calss'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-7246233005301198550</id><published>2010-01-12T20:22:00.000-08:00</published><updated>2010-01-12T20:30:00.739-08:00</updated><title type='text'>Teacher's strike</title><content type='html'>&lt;div style="text-align: justify; color: rgb(0, 0, 0); font-family: lucida grande;"&gt;&lt;span style="font-weight: bold;"&gt;Teachers might be going on strike soon.They realize the ones that are mostly at disadvantage are us students,but they don't care what happen to us.Some students lose summer jobs,some other  their graduation dates get delayed and the rest get stuck with overwhelming school work.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;It's unfair to have students pay for teachers not satisfied  with their contracts.If they went in strike we're gonna be the biggest loser.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-7246233005301198550?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/7246233005301198550/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/teachers-strike.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/7246233005301198550'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/7246233005301198550'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/teachers-strike.html' title='Teacher&apos;s strike'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-1109262801511519545</id><published>2010-01-11T16:57:00.001-08:00</published><updated>2010-01-11T16:59:25.635-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Seneca'/><title type='text'></title><content type='html'>OOP 344 teacher was great but he asked us to form groups with in one week.&lt;br /&gt;I don't see how is that possible.We should at least have two weeks to know each other.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-1109262801511519545?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/1109262801511519545/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop-344-teacher-was-great-but-he-asked.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/1109262801511519545'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/1109262801511519545'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/oop-344-teacher-was-great-but-he-asked.html' title=''/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1873099110604882622.post-6200712867682395016</id><published>2010-01-11T16:38:00.001-08:00</published><updated>2010-01-11T16:40:15.119-08:00</updated><title type='text'>first day of school</title><content type='html'>As expected my first day of school was great.The courses look good but difficult.I got to meet friends&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1873099110604882622-6200712867682395016?l=gtawaf.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://gtawaf.blogspot.com/feeds/6200712867682395016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://gtawaf.blogspot.com/2010/01/first-day-of-school.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/6200712867682395016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1873099110604882622/posts/default/6200712867682395016'/><link rel='alternate' type='text/html' href='http://gtawaf.blogspot.com/2010/01/first-day-of-school.html' title='first day of school'/><author><name>Gamal Tawaf</name><uri>http://www.blogger.com/profile/14290224913674637343</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://2.bp.blogspot.com/_00ADoIdzaQg/S0vF1YjbNxI/AAAAAAAAAAM/LFDz2mSCqGI/S220/DSC00112.JPG'/></author><thr:total>0</thr:total></entry></feed>
