Monthly Archives: May 2008

My classic win over computer in Chess Titans at Level 10

  Move No. White (Computer) Black (Me) 1 d2 — d4 d7 — d5 2 g1 — f3 f7 — f6 3 b1 — c3 a7 — a6 4 e2 — e4 d5 X e4 5 c3 X e4 c8 … Continue reading

Posted in Games | Leave a comment

Bubble Vs Bankruptcy

Once there was a little island country. The land of this country was the tiny island itself. The total money in circulation was 2 dollar as there were only two pieces of 1 dollar coins circulating around. (1)     There were … Continue reading

Posted in Business | Leave a comment

C code to determine the day for a given date

#include <stdio.h>#include <string.h>int main(){ int dd, yy, q, r, a, b, c, s; char mm[15]; printf("\nenter date: "); scanf_s("%d", &dd); printf("\nenter year: "); scanf_s("%d", &yy); printf("\nenter month: "); scanf_s("%s", mm); q = yy/100; r = yy%100; switch(q) {  case 16: a = 6; break;  case 17: a = 4; break;  case 18: a = 2; … Continue reading

Posted in Information Technology | Leave a comment

How to run a C++ program in Visual Studio 2005?

// Test.cpp : Defines the entry point for the console application.// #include "stdafx.h"#include <iostream>using namespace std;   int _tmain(int argc, _TCHAR* argv[]){ cout << "Hello Universe!!!" << endl; return 0;}

Posted in Information Technology | Leave a comment