Skip to main content

Posts

Showing posts from January, 2011

Draw American flag in C programming language

I wrote a program in C language which draw American flag.
Run here
You can request for source code. It is some lines of code and I used very basic methods and functions. I know that picture is not exactly look like the flag, but it is very similar. If you have any suggestions, please comment it here.

First step of answering a question

I think everyone knows that for answering a question, the first step is to understand the question. It is not a big deal, but how important is this step? For a student this matter is quite clear and for who dealing with algorithms much more. I remember one day my teacher asked us to solve a maths exercise, I didn’t understand the question so I asked teacher to explain the question and she explained after she asked us, Did you get it? Everyone replied “No”, She explained again, I didn’t get it, my classmate next to me said “yes, I got it”, so I asked my classmate to explain it for me, surprise! He didn’t understand it, the reason he said was maybe he doesn’t want to look stupid. Ok, I asked teacher for third time and this time I got the question so the answer was so easy, I asked my classmate who previously said that he understand the question, did you get it now? He said “No”. After teacher left our desk, I explained it for my classmate and straight away he told the answer. O…