<?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-5588041595709970859</id><updated>2011-07-08T13:05:54.538+03:00</updated><title type='text'>My Programming Activities</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5588041595709970859.post-2292422899878002075</id><published>2010-05-20T21:43:00.002+03:00</published><updated>2010-05-20T21:47:14.050+03:00</updated><title type='text'>Project Postponed or even cancelled</title><content type='html'>Well the project has been postboned since I've took a low leveling direction after teh course of Digital Design and the creation of a Full Electronical calculator as a Personal Project.&lt;br /&gt;&lt;br /&gt;So it might also be cancelled totaly since I could say as a direction it doesnt has much to offer compare to the new one I'm taking...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-2292422899878002075?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/2292422899878002075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=2292422899878002075' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2292422899878002075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2292422899878002075'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2010/05/project-postponed-or-even-cancelled.html' title='Project Postponed or even cancelled'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-1769108021594816746</id><published>2009-07-11T17:58:00.003+03:00</published><updated>2009-07-11T18:09:29.820+03:00</updated><title type='text'>Windows Programming : Chapter I 3 "Windows and Messages"</title><content type='html'>Well I've begun Windows programming with Charles Petrol's book.&lt;br /&gt;&lt;br /&gt;Its a very big book of 1100 pages.&lt;br /&gt;&lt;br /&gt;I just made a quick read on the 2 first chapters of section I "The Basics" but I've been reading a total of 4 days this damned chapter explaining how a hellow world programm works.&lt;br /&gt;&lt;br /&gt;Well windows programming is more difficult than i thought. It has dozens of its own functions at a point to be considered a programming laguage itself. I hope I will make it cause its really difficult and it requires ver very much reading and re-reading and exercise&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-1769108021594816746?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/1769108021594816746/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=1769108021594816746' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1769108021594816746'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1769108021594816746'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2009/07/windows-programming-chapter-i-3-windows.html' title='Windows Programming : Chapter I 3 &quot;Windows and Messages&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-7788072010707988231</id><published>2009-07-01T10:54:00.001+03:00</published><updated>2009-07-01T10:57:34.258+03:00</updated><title type='text'>END OF C READING. PROCEEDING TO WINDOWS PROGRAMMING (API)</title><content type='html'>I've decided that I know the basics of C so to proceed to Windows Programming. In the end, I dont think I need to know every single detail for that. If there is something else I need to learn that I don't assume that I have to wright now, I will learn in on the way prattically.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-7788072010707988231?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/7788072010707988231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=7788072010707988231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/7788072010707988231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/7788072010707988231'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2009/07/end-of-c-reading-proceeding-to-windows.html' title='END OF C READING. PROCEEDING TO WINDOWS PROGRAMMING (API)'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-6780707520612304327</id><published>2009-07-01T10:40:00.003+03:00</published><updated>2009-07-01T10:54:31.358+03:00</updated><title type='text'>C... Learning : Chapter 8 of 8 "The C STL"</title><content type='html'>Yesterday I finished the resumption of C. I didn't resumpt the Structures and the Access of Files. Since I know there existence and usance I will learn them practicall (permamnently) when I'm going to need them.&lt;br /&gt;&lt;br /&gt;That also was the spirit while reading 8th chapter "The C Standar Template Library". No matter how much I red all the functions I was never going to remember them If I hadn't a prattical usance for them. So I just red the time.h header's functions which I found mostly interesting, especially the clock_t_clock() with which you could calculate the time in seconds passed between 2 moments in the program's execution,&lt;br /&gt;&lt;br /&gt;On that I've created a programm, a clock actually that counts the pass of time showing secs, minuites and hours. Also I've created a header function which when you call it you pass an amount of time in secs and this function will pause the programm's execution for that amount of time&lt;br /&gt;Actually it occupies the CPU with a loop checking each time the time difference from when the loop started and the curent moment until it reaches the amount of secs given by the user. So its not much of use since you cant use it as a timer in a real time game loop or at least I think so.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-6780707520612304327?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/6780707520612304327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=6780707520612304327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6780707520612304327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6780707520612304327'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2009/07/c-learning-chapter-8-of-8-c-stl.html' title='C... Learning : Chapter 8 of 8 &quot;The C STL&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-6525248497003844424</id><published>2009-06-28T20:11:00.004+03:00</published><updated>2009-07-11T17:53:34.734+03:00</updated><title type='text'>Notes on epanalepsis that weren't written down</title><content type='html'>This is an image showing the nature of the triple operator. With the experience of a Project like battleship i came up that it can come usefull in saving you tons of code.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_OcJ-zhAskCw/SlinYgvQbAI/AAAAAAAAAEw/A-xpLIceFZw/s1600-h/The+Triple+Operator.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 276px; height: 138px;" src="http://1.bp.blogspot.com/_OcJ-zhAskCw/SlinYgvQbAI/AAAAAAAAAEw/A-xpLIceFZw/s400/The+Triple+Operator.jpg" alt="" id="BLOGGER_PHOTO_ID_5357215796304047106" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-6525248497003844424?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/6525248497003844424/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=6525248497003844424' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6525248497003844424'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6525248497003844424'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2009/06/notes-on-epanalepsis-that-werent.html' title='Notes on epanalepsis that weren&apos;t written down'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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/_OcJ-zhAskCw/SlinYgvQbAI/AAAAAAAAAEw/A-xpLIceFZw/s72-c/The+Triple+Operator.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5588041595709970859.post-1328734882260118016</id><published>2009-06-28T19:54:00.003+03:00</published><updated>2009-06-28T20:10:51.680+03:00</updated><title type='text'>Project Back Online after Almost a year</title><content type='html'>For several reasons I had left the 1st part 'Learn C' of the personal project "Learn to create simple 2D-3D games through 'Beggining Game Programming' book " on air.&lt;br /&gt;&lt;br /&gt;Some major things that ought to be done, start of uni at February and a stupid personal incapacity to organise my time properly so that there would be space for the project, made me to leave the project. Now that my uni's exams are over I want to continue it.&lt;br /&gt;&lt;br /&gt;I'll have to make an epanalipsis to C and cover the last chapter.&lt;br /&gt;&lt;br /&gt;But as I have sed in my last post I need a practical exercise of C so to be marked "permanently" in my head.&lt;br /&gt;&lt;br /&gt;So once done I will begin a C project to get used with the language pratically. It's gonna be a non real time game in console application like Battleships (I've done it in Pascal language for Programming I study). From that PASCAL project I realised that this is the best method to learn, remember and exercise a programming language.&lt;br /&gt;&lt;br /&gt;Once created, - like it happened with Pascal with Battleships Progejt - I will be able to manipulate C code like drinking water.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-1328734882260118016?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/1328734882260118016/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=1328734882260118016' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1328734882260118016'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1328734882260118016'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2009/06/project-back-online-after-almost-year.html' title='Project Back Online after Almost a year'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-1716998996050284296</id><published>2008-09-24T16:35:00.003+03:00</published><updated>2008-09-24T17:21:23.240+03:00</updated><title type='text'>C...Learning: Chapter 7 of 8 "Access to stored Data"</title><content type='html'>There is a lot of stuff about this chapter.&lt;br /&gt;&lt;br /&gt;I've learned how to create and write a file and how to read a file&lt;br /&gt;&lt;br /&gt;On this, I've made for practice a &lt;a href="http://rapidshare.com/files/147999985/Store_Personal_Data.exe"&gt;programm&lt;/a&gt; that stores Personal data ( Name, Surname, Age) in structures (specified N) and afterwards it creates a file and stores those data. Then it gives you the option to retrieve the data (read the file) you stored and show it in the screen. Practical exercises like this are of the most importance but they take much time&lt;br /&gt;&lt;br /&gt;After these 2 elements I've red about :&lt;br /&gt;temporary files creation&lt;br /&gt;binary files (didnt got much)&lt;br /&gt;data rapprochement (didnt payed much attention)&lt;br /&gt;&lt;br /&gt;However I didnt tested pratically these elements&lt;br /&gt;&lt;br /&gt;I'm proceeding to the final chapter, Chapter 8 "Standar Library"&lt;br /&gt;&lt;br /&gt;P.S.&lt;br /&gt;God! I know most parts of C theoritically while ohters (e.g. dynamic memory manipulating) I didnt learned them at all!&lt;br /&gt;When I'm gonna to write C on practice, its gonna be the mess!&lt;br /&gt;&lt;br /&gt;Actually, I'll be heading to API (which works on C) after chapter 8 from a 400 pages book probably. I hope I will exercise there a bit otherwise I'll have to exercise all 3 languages learned in the end while programmingGames from the targeted book (Beginning Game Programming)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-1716998996050284296?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/1716998996050284296/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=1716998996050284296' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1716998996050284296'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1716998996050284296'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-7-of-8-access-to.html' title='C...Learning: Chapter 7 of 8 &quot;Access to stored Data&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-6561072848116948928</id><published>2008-09-22T16:03:00.001+03:00</published><updated>2008-09-22T16:04:47.528+03:00</updated><title type='text'>C...learning: Chapter 6 of 8 "Structures"</title><content type='html'>I've left the dynamic memory manipulating. Its not the firs in priority. Later it may be but not now. I'll proceed to chapter 7&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-6561072848116948928?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/6561072848116948928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=6561072848116948928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6561072848116948928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6561072848116948928'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-6-of-8-structures.html' title='C...learning: Chapter 6 of 8 &quot;Structures&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-3783218688795379603</id><published>2008-09-20T19:38:00.004+03:00</published><updated>2008-09-21T11:43:12.917+03:00</updated><title type='text'>C...learning: Chapter 6 of 8 "Structures"</title><content type='html'>Here we have with a master piece part!&lt;br /&gt;From what I can get its usefull for creating databases forms but I'll have to ask for it&lt;br /&gt;answer: yes thats an example of its usance&lt;br /&gt;&lt;br /&gt;It was a very productive day. I believe that these will be very usefull in game programming where you will have tens of elements with properties (enemies, objects etc...)&lt;br /&gt;&lt;br /&gt;Now set a closer look upon structures...&lt;br /&gt;&lt;br /&gt;A structure - the way I see it of course - is an object, more like a box in which you can store elements (variables). Once created, it contains the variables (charactersitcs) of your project and you can call those separately to appear.&lt;br /&gt;&lt;br /&gt;Doesn't it reminds an Array? If we have an Array for storing several elements, why shall we have a structure?&lt;br /&gt;&lt;br /&gt;It gives you the ability to create databases. I've created a structure "User" which contained Name,Surname,Age and I've put 10 of this structures into a 10 size array.&lt;br /&gt;&lt;br /&gt;So now each cell contained all 3 types a user's informations (Name,Surname,Age)&lt;br /&gt;&lt;br /&gt;If there werent structures I would have to create 3 arrays and jumping like a Kangaroo from array to array.&lt;br /&gt;&lt;br /&gt;So structures are like folders. You put inside them all informations about their element and you store them (all the folders) into a drawer (array) with a characterstical name on each folder to be able at any time to lift it and imediately access all of its informations-elements. I've created this image&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_OcJ-zhAskCw/SNYI5Bc7MwI/AAAAAAAAAEA/BoyV-z-Rxes/s1600-h/Structures+%26+Arrays.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_OcJ-zhAskCw/SNYI5Bc7MwI/AAAAAAAAAEA/BoyV-z-Rxes/s400/Structures+%26+Arrays.jpg" alt="" id="BLOGGER_PHOTO_ID_5248392191482213122" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-3783218688795379603?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/3783218688795379603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=3783218688795379603' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3783218688795379603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3783218688795379603'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-5-of-8-structures.html' title='C...learning: Chapter 6 of 8 &quot;Structures&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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://4.bp.blogspot.com/_OcJ-zhAskCw/SNYI5Bc7MwI/AAAAAAAAAEA/BoyV-z-Rxes/s72-c/Structures+%26+Arrays.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5588041595709970859.post-1522661741234327096</id><published>2008-09-20T19:37:00.002+03:00</published><updated>2008-09-21T10:03:36.703+03:00</updated><title type='text'>C...learning: Chapter 5 of 8 "Preproccessor"</title><content type='html'>Nothing complex but I can't get its usance still. However I'm sure when I will programm games from the book, I will...&lt;br /&gt;&lt;br /&gt;As I saw it its a like a way for replacing pieces of codes or value with your custom texts, but it go even further.&lt;br /&gt;&lt;br /&gt;It gives you the ability to make choice structures with if for the pieces you,ve set.&lt;br /&gt;&lt;br /&gt;So since its above any function or command its like having 2 different ways in the program flow, on the one hand being into a complex while statement in some function and in the meantime continuing giving several orders with the preprocessor, orders that affect other parts of the program (or the whole program) despite the fact that you re narrowed to a while statement.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-1522661741234327096?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/1522661741234327096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=1522661741234327096' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1522661741234327096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/1522661741234327096'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-5-of-8-preproccessor.html' title='C...learning: Chapter 5 of 8 &quot;Preproccessor&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-5592352464263302933</id><published>2008-09-18T16:50:00.005+03:00</published><updated>2008-09-19T18:39:37.873+03:00</updated><title type='text'>C...learning: Chapter 4 of 8 "Functions"</title><content type='html'>I've used simple functions handling -without variables passing- hundreds of time in C++ and so I just viewed the introductive parts.&lt;br /&gt;&lt;br /&gt;I still can't fully get the usance of "Categories of Saving Variables" (extern,static,auto,register ) and specifically the extern but I think I will lately with "files direction"&lt;br /&gt;&lt;br /&gt;Now the issues about pointers in functions. The first notable of the chapter&lt;br /&gt;float z = 3&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;float* const pointer= &amp;amp;z&lt;/span&gt;&lt;br /&gt;you can change the contect (*const pointer=5;) and not the adress (const pointer = &amp;a;)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;const float * pointer=&amp;z;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;you can change the adress but not the content.&lt;br /&gt;&lt;div style="text-align: right;"&gt;&lt;div style="text-align: center;"&gt;However you can change the variable of the adress.&lt;br /&gt;&lt;/div&gt;&lt;div style="text-align: center;"&gt;                  So this is the way for changing the content in this case&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;If you want to &lt;span style="font-weight: bold;"&gt;completely lock both pointer and&lt;/span&gt; the &lt;span style="font-weight: bold;"&gt;variable&lt;/span&gt; then you have to do this&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_OcJ-zhAskCw/SNJl65zX9QI/AAAAAAAAADo/7IKLEzUNeUo/s1600-h/LockPointer-Variable.jpg"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_OcJ-zhAskCw/SNJl65zX9QI/AAAAAAAAADo/7IKLEzUNeUo/s400/LockPointer-Variable.jpg" alt="" id="BLOGGER_PHOTO_ID_5247368578463167746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;About references its the way to pass the adresses from variables of a function to another functions. But from the time the function has the adresses, nothing stops her to change their content. So its the way for changing the variables passed to other functions.&lt;br /&gt;&lt;br /&gt;Now, about the form of this process we have the example&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:webdings;"&gt;main()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:webdings;"&gt;{&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;    int x=5, y=10;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:webdings;"&gt;     function (&amp;amp;x, &amp;amp;y)&lt;/span&gt;;&lt;span style="font-family:webdings;"&gt; ...&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;void function (int* x, int*y)&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:webdings;"&gt;{&lt;/span&gt;&lt;span style="font-family:webdings;"&gt;    *x=0&lt;/span&gt;;&lt;br /&gt;&lt;span style="font-family:webdings;"&gt;     *y=0;   }&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;You declare pointers in the function and so you pass them the adresses. Now you have the power to change them&lt;br /&gt;&lt;br /&gt;When you're &lt;span style="font-weight: bold;"&gt;passing an array&lt;/span&gt;, you just pass its adress so you can either pass the array's name, or a pointer - for an arrays name its actually an adress of the array&lt;br /&gt;&lt;br /&gt;You have also the ability to &lt;span style="font-weight: bold;"&gt;pass pointers&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Therefore &lt;span style="font-weight: bold;"&gt;you can even make a function call itself&lt;/span&gt; - flashback (anadromh in Greek)!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-5592352464263302933?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/5592352464263302933/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=5592352464263302933' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/5592352464263302933'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/5592352464263302933'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-4-of-8-functions.html' title='C...learning: Chapter 4 of 8 &quot;Functions&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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://3.bp.blogspot.com/_OcJ-zhAskCw/SNJl65zX9QI/AAAAAAAAADo/7IKLEzUNeUo/s72-c/LockPointer-Variable.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5588041595709970859.post-2909287529855769354</id><published>2008-09-18T14:56:00.004+03:00</published><updated>2008-09-18T15:28:51.386+03:00</updated><title type='text'>C...learning: Chapter 3 of 8 - Left 2ond Part "Arrays and Pointers"</title><content type='html'>I have to admit that the 2ond part of chapter 3 reffering to pointers usance in arrays was difficult. I couldn't get the usance of all those things.&lt;br /&gt;&lt;br /&gt;I won't be losing time. If there is something from those elements that will be used in the book for Game Programming I will mind then but now these things may be of little use for there and so I won't be losing time learning them.&lt;br /&gt;&lt;br /&gt;I will proceed to chapter 4 "Functions"&lt;br /&gt;&lt;br /&gt;P.S.&lt;br /&gt;During my experiments with arrays I've learned some &lt;span style="font-weight: bold;"&gt;new things about&lt;/span&gt; the &lt;span style="font-weight: bold;"&gt;"%"&lt;/span&gt; operator and &lt;span style="font-weight: bold;"&gt;for&lt;/span&gt;.&lt;br /&gt;This operator does not declare the end of the text to set a numbe but rather it can;t be set between text as it declares the position within text where the variable -that is declared after the brackets- is going to be set.&lt;br /&gt;&lt;br /&gt;So &lt;span style="font-weight: bold;"&gt;when&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;you want to put 2 variables between the text you do this&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;printf&lt;/span&gt; ("Cell %d is %d",i, matrix1[i]);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and not what I've first tried&lt;br /&gt;&lt;span style="font-family:lucida grande;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;printf&lt;/span&gt; ("Cell %d",i,"is%d",matrix1[i]);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now what I've discovered&lt;span style="font-weight: bold;"&gt; about for&lt;/span&gt; is that &lt;span style="font-weight: bold;"&gt;after the parentesis if you put ";" then its like having an empty statement&lt;/span&gt; (having nothing between the brackets "{}")&lt;br /&gt;&lt;br /&gt;Another great thanks to the forums&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-2909287529855769354?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/2909287529855769354/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=2909287529855769354' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2909287529855769354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2909287529855769354'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-2-of-8-left-2ond-part.html' title='C...learning: Chapter 3 of 8 - Left 2ond Part &quot;Arrays and Pointers&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-3231872720507074119</id><published>2008-09-14T11:59:00.005+03:00</published><updated>2008-09-24T16:55:21.674+03:00</updated><title type='text'>C...learning : Chapter 3 of 8 "Arrays"</title><content type='html'>&lt;p&gt;Yesterday I've entered the 3rd chapters which is about matrixes and pointers.&lt;/p&gt;&lt;p&gt;I've red the 1st part reffering only to matrixes and now I'm experimenting with some test before i proceed to the 2ond part.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-3231872720507074119?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/3231872720507074119/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=3231872720507074119' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3231872720507074119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3231872720507074119'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-3-of-8.html' title='C...learning : Chapter 3 of 8 &quot;Arrays&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-3639269605410255274</id><published>2008-09-10T16:38:00.003+03:00</published><updated>2008-09-11T01:50:28.211+03:00</updated><title type='text'>Blog News : Blog's Header Image</title><content type='html'>I wanted to give a special and more artistic look to the blog, and so I've created this image on photoshop. I would like you to rate it.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Once you Vote it you may post your comments&lt;/span&gt; in this post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-3639269605410255274?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/3639269605410255274/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=3639269605410255274' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3639269605410255274'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3639269605410255274'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/blog-news-blogs-header-image.html' title='Blog News : Blog&apos;s Header Image'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-6761419922806370286</id><published>2008-09-08T15:50:00.005+03:00</published><updated>2009-06-30T14:10:20.358+03:00</updated><title type='text'>C...learning: Chapter 2 of 8 "Control Commands"</title><content type='html'>&lt;p&gt;Well Yesterday Proceeded to the 2ond chapter "Control Commands". Which included if, if-else, switch, while, do-while, for, continue, return, goto, exit()&lt;/p&gt;&lt;p&gt;It was a quick look more likely since i know most of them from my short C++ experience.&lt;/p&gt;&lt;p&gt;In&lt;strong&gt; switch&lt;/strong&gt; however there is the difference that &lt;strong&gt;in the end, you have "default()" rather than "else"&lt;/strong&gt;.&lt;/p&gt;&lt;p&gt;The &lt;strong&gt;triple operand&lt;/strong&gt; was something new to me, but despite the initial complexity I got it. A well shrinked form of if-else but which on first look I think has restricted capabilities - only variables checking - and so I dont think I will be using it much.&lt;/p&gt;&lt;p&gt;edit After Project was Back Online&lt;/p&gt;&lt;p&gt;-------------------------------------------------------------------------&lt;br /&gt;This is an image showing the nature of the triple operand. With the experience of a Project like battleship i came up that it can come usefull in saving you tons of code.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_OcJ-zhAskCw/SknyDcuXVZI/AAAAAAAAAEo/KXnamY-l4l0/s1600-h/The+Triple+Operator.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 276px; height: 138px;" src="http://4.bp.blogspot.com/_OcJ-zhAskCw/SknyDcuXVZI/AAAAAAAAAEo/KXnamY-l4l0/s400/The+Triple+Operator.jpg" alt="" id="BLOGGER_PHOTO_ID_5353075773170734482" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="font-weight: normal;"&gt;-----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Continue&lt;/strong&gt; and &lt;strong&gt;exit()&lt;/strong&gt; were new to me too despite tehy existed in C++.&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;The for form&lt;/span&gt; in Confused me with the initialization command. I didnt remembered it. The basic form means&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Form Expalnation&lt;/p&gt;&lt;p style="font-family: arial; font-weight: bold;"&gt;//-----------------------------------------------------------------------------------------------&lt;/p&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;for&lt;/span&gt; (a=0&lt;span style="color: rgb(0, 153, 0);"&gt;/*assign 0 to a*/&lt;/span&gt;; a&gt;0&lt;span style="color: rgb(0, 153, 0);"&gt;/*while a&gt;0*/&lt;/span&gt;,a++&lt;span style="color: rgb(0, 153, 0);"&gt;/*repeat (while a&gt;0)*/&lt;/span&gt;) &lt;span style="color: rgb(0, 153, 0);"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p  style="font-family:arial;"&gt;&lt;span style="font-weight: bold;"&gt;//-----------------------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Appears idiot to be found there an initialization function and thats why I was confused&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I had also some &lt;strong&gt;issues with return()&lt;/strong&gt;. I couldnt understand why it was termintaing my programms in main despite I wasnt putting "return 0"&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;printf("Start. Give a\n");&lt;br /&gt;scanf("%d",&amp;amp;a);&lt;br /&gt;printf("\na is %d\n",a);&lt;br /&gt;if (a==2)&lt;br /&gt;{&lt;br /&gt;     return a;&lt;br /&gt; printf("a is 2\n");&lt;br /&gt;}&lt;br /&gt;return 0;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Well thanks to the forums I've cleared up things.&lt;/p&gt;&lt;p&gt;"&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;em&gt;If you are in main(), the runtime library has called main() function. In the case of Windows, the routine that calls main () is mainCRTStartup() ). So using return; within main just goes back to mainCRTStartup(). mainCRTStartup() returns to kernel32.dll which terminates your program.&lt;br /&gt;&lt;br /&gt;In other words, in all cases, return; only returns from a function. It is not what terminates the program--the only thing that can is the OS&lt;/em&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family:times new roman;"&gt;&lt;em&gt;.&lt;/em&gt;&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;"&lt;span style="font-family:times new roman;"&gt;&lt;em&gt;&lt;span style="font-size:85%;"&gt;The return keyword calls the end of a function that has a return value. So if you had a different function that returned the length of a string, for instance, you would not leave that function until you reached a return statement or else some exception occurred and you went out of the functions scope. So when they say that it returns control to the main function it means its then end of the previous function. It does not output the value of two to the screen because that would require a specified output stream and no it does not work like the break keyword.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;example&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;#include &lt;iostream&gt;&lt;br /&gt;using namespace std;&lt;br /&gt;&lt;br /&gt;float add (float x, float y) // a simple addition function&lt;br /&gt;{&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//---------------------------------\/HERE\/-----------------------------  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;return&lt;/span&gt; x + y; &lt;/iostream&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;// this will return to wherever it was called from&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//&lt;---  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;//---------------------------------/\HERE/\-------------------------------  &lt;/span&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main ()&lt;br /&gt;{&lt;br /&gt; float t = add (4.33f, 299.3f);&lt;br /&gt; return EXIT_SUCCESS; // nowhere to return from, so we exit&lt;br /&gt;}  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-size:100%;"&gt;So basicaly its usance is to pass values back in the "mother functions" for asignation of variables from another function&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-6761419922806370286?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/6761419922806370286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=6761419922806370286' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6761419922806370286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/6761419922806370286'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/clearning-chapter-2-of-8.html' title='C...learning: Chapter 2 of 8 &quot;Control Commands&quot;'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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://4.bp.blogspot.com/_OcJ-zhAskCw/SknyDcuXVZI/AAAAAAAAAEo/KXnamY-l4l0/s72-c/The+Triple+Operator.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5588041595709970859.post-3490001942508488633</id><published>2008-09-06T20:07:00.004+03:00</published><updated>2008-09-07T00:47:21.204+03:00</updated><title type='text'>C...learning: Cleared up printf and the "%" operator</title><content type='html'>&lt;p&gt;Finally I've managed to cover my empty spaces about this 2 elements of C.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;In the printf fuction before outputing a value you have to declare its kind in the brackets ("...") by using the % symbol in the brackets followed by the type the value is gonna be (decima,float,char) &lt;/strong&gt;&lt;/p&gt;&lt;p&gt;C does not support the cout function from C++ as an older language.&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:times new roman;"&gt;"&lt;em&gt;C does not have overload operators, so there is only one printf fuction that accepts any number of parameters - type of the passed parameter is not known to the function.&lt;br /&gt;to get the function some idea - how it should interpreter the passed parameters - format specifiers are used, each format specifier starts with %&lt;/em&gt;"&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Also I &lt;strong&gt;couldnt understand how precision works&lt;/strong&gt; in printf (%x.xf). &lt;strong&gt;The right part was  cuting numbers but the left part  seemed to do nothing&lt;/strong&gt;. &lt;/p&gt;&lt;p&gt;But as found at MSDN library &lt;/p&gt;&lt;p&gt;"&lt;em&gt;&lt;span style="font-family:times new roman;"&gt;...If width is prefixed with 0, zeros are added until the minimum width is reached (not useful for left-aligned numbers).&lt;/span&gt;&lt;/em&gt;"&lt;/p&gt;&lt;p&gt;There was finally another wonder. I couldn't find &lt;strong&gt;&lt;span style="font-family:webdings;"&gt;&lt;em&gt;&lt;span style="font-size:130%;"&gt;why&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;&lt;span style="font-family:webdings;"&gt; &lt;/span&gt;&lt;/strong&gt;&lt;strong&gt;someone would use the hexademical system for variables?&lt;/strong&gt; Finally someone told me that there could be 3 reasons for that&lt;/p&gt;&lt;p&gt;"&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;1st&lt;/strong&gt; off you are required to have a hex editor to read the file (when looking at a hex file through notepad or th elike it will just be jumbled text). &lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;2ond&lt;/strong&gt;, you can store all values between 0 and 255 in 2 characters instead of 3, which can cut down on the number of characters you need and thus the file size when you are programming say a game where inventory and things can be changed and have nultiple values. &lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;3rd&lt;/strong&gt;, it really doesn't matter to the C/C++ compiler. Both use a base 2 (Binary) system for numeric calculations so it has to convert anyway, base 16 (Hex) compared to base 10 (Decimal) isn't very different after being converted to base 2.&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;"&lt;/p&gt;&lt;p&gt;I admit that &lt;strong&gt;I can't&lt;/strong&gt; fully understand all of the reasons wright now &lt;strong&gt;nor &lt;/strong&gt;apllicate the reasons. But just this knowledge is enough for now.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Well&lt;/strong&gt;, by the present facts and calculations, I  think that I can proceed to the &lt;strong&gt;2nd of 8 &lt;/strong&gt;chapter which is about the "Control Commands" (if,else...). Probably I will be finishing it rather quickly as I know most of the functions from C++ but never swear on these things.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&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/5588041595709970859-3490001942508488633?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/3490001942508488633/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=3490001942508488633' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3490001942508488633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3490001942508488633'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/c-learning-cleared-up-printf-and.html' title='C...learning: Cleared up printf and the &quot;%&quot; operator'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-2958916850243246429</id><published>2008-09-06T17:07:00.001+03:00</published><updated>2008-09-07T00:32:21.190+03:00</updated><title type='text'>C...learning: 1st Day (4-9-08)</title><content type='html'>&lt;p&gt;Well the day before-yesterday at 4th September, I've learned the basics of C by reading the &lt;strong&gt;1st&lt;/strong&gt; from the &lt;strong&gt;8 &lt;/strong&gt;chapters my 290pages book includes.&lt;/p&gt;&lt;p&gt;Constants, Variables, using of the "%" operator, basic of pointers, the printf, scanf functions.&lt;/p&gt;&lt;p&gt;Mostly i was familiar with the staff from my C++ programming experience, yet I found difficulties&lt;/p&gt;&lt;p&gt;&lt;strong&gt;The Nature of Pointers&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;I was confused because I couldn't declare the pointer wright to the Variable bu just to its refference&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;int x=5;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;int y=5;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="color:#ff0000;"&gt;int* pointer=&amp;y;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;printf(" x is, %d\n",x);&lt;br /&gt;printf(" y is, %d\n",y);&lt;br /&gt;printf(" &amp;amp;y is, %d\n",&amp;amp;y);&lt;br /&gt;printf(" pointer is, %d\n",pointer);&lt;br /&gt;printf(" *pointer is, %d\n",*pointer);&lt;br /&gt;printf(" &amp;amp;*pointer is, %d\n",&amp;amp;*pointer);&lt;br /&gt;&lt;br /&gt;scanf("a");&lt;br /&gt;return 0;&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-family:courier new;"&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;OUTPUT&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;span style="font-family:courier new;"&gt;x is, 5&lt;br /&gt;y is, 5&lt;br /&gt;&amp;amp;y is, 2293604&lt;br /&gt;pointer is, 2293604&lt;br /&gt;*pointer is, 5&lt;br /&gt;&amp;amp;*pointer is, 2293604&lt;/span&gt;&lt;/em&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;But by asking on the forums, until yesterday I've cleared up things as I learned that a pointer its by word an adress and so can only be assigned to an adress.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;   &lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;P.S. Was confused until I 've outputed the pointer itself "&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;printf(" pointer is, %d\n",pointer);&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;"&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;However &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;the "*" symbol is nothing more than a guidline to force the pointer show the content of its adress&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;And &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;the "&amp;amp;" symbol&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt; on the contrary &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;forces the revealance of the adress of a variable&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;The Fact that when you were outputing "&lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;&amp;amp;*pointer&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;" you were &lt;/span&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt;getting the adress&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:arial;"&gt; confused me&lt;/span&gt;&lt;span style="font-family:arial;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;em&gt;"Why do that?! The pointer is an adress itself!"&lt;/em&gt;&lt;/p&gt;&lt;p&gt;&lt;strong&gt;But&lt;/strong&gt; what I've understood quickly was that when you had "*pointer" since the "*" forces teh content revealance, it is like having the variable itself (at least thats the way i saw it), and so, when you put a "&amp;amp;" in front of "*pointer" its like putting it in front of the variable, so you get the adress.&lt;/p&gt;&lt;p&gt;I've created this image to have a schematical reprsentation in my mind&lt;/p&gt;&lt;p&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px;" src="http://img144.imageshack.us/img144/3949/pointerschematicalexplabm4.jpg" border="0" alt="" /&gt;&lt;/p&gt;&lt;p&gt;Well I believe it was good I've cleared absolutely this basic fact in the initials of pointers. Empty spaces like this can be dreadfull later. I've experienced that with classes on C++&lt;/p&gt;&lt;p&gt;Well before I proceed to the next chapter I want to clear up things with the "%" operator and the scanf function.&lt;/p&gt;&lt;p&gt;These two especially the % confused me too. Lets hope I'm gonna clear things the same.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-2958916850243246429?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/2958916850243246429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=2958916850243246429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2958916850243246429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/2958916850243246429'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/c-learning-1st-day-4-9-08.html' title='C...learning: 1st Day (4-9-08)'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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-5588041595709970859.post-3963297887369690739</id><published>2008-09-06T16:54:00.002+03:00</published><updated>2008-09-21T15:55:23.973+03:00</updated><title type='text'>The Beggining</title><content type='html'>I was always interested in &lt;strong&gt;Game Programming&lt;/strong&gt; and thats the reason for now beggining &lt;strong&gt;learning C&lt;/strong&gt;. See a book I own which puts you on the path for creating simple 2D games works with &lt;strong&gt;C&lt;/strong&gt;, &lt;strong&gt;DireXt&lt;/strong&gt; and Windows Programming (&lt;strong&gt;API&lt;/strong&gt;) languages, and also with Multimedia Creation Programms (Audio Editing, 3D Animating) but I already have a basic experience on that sector (The Blog's Header Image is My Creation, Done some &lt;a href="http://www.gamespot.com/users/george33387/video"&gt;3D Animations&lt;/a&gt; too ) So currently I'm learning the grammar and syntax of &lt;strong&gt;C&lt;/strong&gt; then I think i will be heading to Windows Programming (&lt;strong&gt;PowerShell&lt;/strong&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5588041595709970859-3963297887369690739?l=georgesblogprogramming.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://georgesblogprogramming.blogspot.com/feeds/3963297887369690739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5588041595709970859&amp;postID=3963297887369690739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3963297887369690739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5588041595709970859/posts/default/3963297887369690739'/><link rel='alternate' type='text/html' href='http://georgesblogprogramming.blogspot.com/2008/09/beggining.html' title='The Beggining'/><author><name>George</name><uri>http://www.blogger.com/profile/08427786327007787743</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>
