Archive

Archive for July, 2008

Some C++ programs

July 31st, 2008 Anurag Bhandari 37 comments

Update:
As requested by Sajith Karingat (comment #29), I worked on a Phone Billing System in C++, as per his requirements. You can download it here.

I have entered my final year in my B.Tech course, and with it, it’s placement time. Companies for the computer science stream (my stream) will start visiting my college beginning from 11th August. The first to come will be TCS (Tata Consultancy Services) which is considered as a good IT firm in India with global fame.

As part of my prep for the placements, obviously, I am revising my concepts (technical ones). Today, as it was raining heavily in the college, we sat in our central canteen, waiting for the rain to stop. During that time, we held a heated discussion on C++ programs that were most likely to be asked in interviews for placements.

Amongst those programs, one was to swap the values of two variables “a” and “b” without using the “temp” variable. Another interested one we discussed was that would generate a pattern like:

1
2 3
4 5 6
7 8 9 10
11 12 13 14
…… and so on.

When I got back home, I decided to have a go on these programs. And so, here are my answers to above problems.

Read more…

Hancock

July 13th, 2008 Anurag Bhandari No comments

Yesterday, I went to see Hancock in a theatre nearby. And that was the second day of film release in India. Although the original release date was on 4th of July, the release was delayed by one whole week due to reasons unknown to me.

The way Sony had been advertising Hancock on the television and on the Internet, I was pretty sure it would be a nice watch, and that is what it turned out to be in the end. The poor rating of the movie on IMDb (6.9) and Rotten Tomatoes (37%) didn’t deter my plan to watch the movie.

Yesterday was raining and raining wildly here in Jalandhar. But the rain had stopped till the evening, and my friend and I were able to reach the theatre in time. Despite the rain, the theatre witnessed a packed crowd, eager to see the movie, just like me, maybe drawn to the movie due to the wide-scale ads on TV.

The film began and the fun started. Will Smith in his best of form, and that too a comic form, just imagine. This was till the first half, which constituted a well-written script, good acting performances, and a nice story.

The second half began and the story got intense; intense to a point I didn’t expect it to go. The second half was devoid of humor, err… wild and funny humor. Ok, nothing wrong if we take the story aspect here and that was understandable. The story went on and the second half finished as it shouldn’t have, leaving me wanting some more out of it. The ending part could have been a lot better, but it wasn’t.

Anyway, the movie ended with closing credits and I got off with my friend towards the exit point. But before we could get out, we saw a short clip between the credits. It was a nice shot, Hancock saving yet another life.

All in all, it wasn’t a bad watch, it was rather nice watching it. But because of the second half, I am giving it a rating of 7, though I usually do not do this much harm to Will Smith starers.

Who knows Hancock could spark a new generation of superhero, a frustrated superhero (as they used to call him in the trailers)? Maybe, this was the first of the Hancock series to come ahead…

Categories: Movies Tags: , , , ,