Wednesday, April 29, 2009

What is the difference between a++ and ++a?

The difference between a++ and ++a, is that when we use a++ in a program and then the effect would be on the next statement while the ++a, effect is that on the current line not on the next statement. Example code:


Output:


Code:

#include<……>

#include<……>

int main()

{

int c=1;

c=5;

printf("%d\n",c);

printf("%d\n",c++);

printf("%d\n\n",c);

c=10;

printf("%d\n",c);

printf("%d\n",++c);

printf("%d",c);

getch();

}

Tuesday, April 21, 2009

A Day of 100% Scores

Well, I am so glad it is because finally, all of my quizzes this day are all perfect and no mistakes even one mistake only. I also I am so happy it is because I made to saw my crush and talk to her. Oh my God I can't believe this. This is really a perfect day for me especially in school. Even though in our house there are some struggles but still I can make to smile for my friends and for all person who support and love me and ready to give their shoulder in case I need them. Well, I hope that it will continue till I graduate in college and also when I can get my stable job.

Saturday, April 18, 2009

Updating

Well, today I am updating all my blogs the Web Development Blog, Cyber Information and the One Step Closer Blog. These are few of my blogs, but unfortunately I did not made to update some of my blogs. These 3 blogs including this Students Diary is my favorite of all my blogs and I don't know why. Actually, not only me who is updating my blog but also my friends here beside me. I want to update them all so that they can made to compete to other blog.jejejejejeje, but I know that this is so impossible. I am going to try my best to put all my english in all my blogs I know that these is one way on how to enhance my knowledge in writing and not only in writing but also in making an article. So thats all and see yah...

Friday, April 17, 2009

Getting a score of ZERO is not showing that you are a LOSSER

I was really disappointed when I got zero in our activity this morning. For me, it is so easy but I don't know why. I don't want to blame the multitester itself but I think I really have to blame myself, why? it happen this morning. Ever since from the start of our class, I did not made to get zero and this is my first time to get zero in our quiz and activity this summer. Oh my God. I can't believe it, but I have too.I know that next time will be mine, I know that. I don't want to get a score of zero again, even though getting a score of zero doesn't mean that you are a losser. Because this morning, we have an activity each group or should I say it is a kind of game. But sad to say we did not made to won the game it is because, I and one of my companion got a wrong answer in getting the coded value and measured value of a resistor, so insted of getting the perfect score we've only got 7/10. But I know that next time will be ours.

Friday, March 27, 2009

Getting the Numbers of Failed Students


This is a code in a getting the number of the students who had made to passed and failed.

Code:

# include......
# include......

int main()
{
int passes = 0;
int failures = 0;
int student = 1;
int result;



while (student <= 10)
{
printf("Enter result (1=pass,2=Fail):");
scanf("%d", &result);
if (result == 1)
{
passes = passes + 1;
}
else
{
failures = failures + 1;
}
student = student + 1;
}
printf("Passed %d\n", passes );
printf("Failed %d\n", failures );
if ( passes > 8 )
{
printf("Raise Tuition\n");

}

getch();
}


Output:



Wednesday, March 25, 2009

A Day to Remember

Today is a day that I have to remember always, why? it is because this is the day in which their are so many unexpected events happen unto my life, such as I have now my love one. I am so happy because, of that person. That person came in my life I think to really change me. Everything on me really change my attitudes and my especially my mental growth because even though I am now 19 yrs old, but still I am acting like in a late childhood stage but now I am now fully mature and you know what my readers? that person really change me, because on my past I am just playing when it came to love but now this is my first time to be serious in one relationship and thats why I can say that, that person really change me.