Monday, November 29, 2010

Harshad Mehta: From Pied Piper of the markets to India's best-known scamster

Harshad Mehta, a charismatic and ambitious stockbroker, rose to fame in the 1990s, captivating the dreams of middle-class Indians with his rags-to-riches story. He became a symbol of success on Dalal Street, the Indian financial market. However, his questionable means and the Rs 50-billion securities scam tarnished his image. Despite attempts at comebacks, his flashy strategies and old charm failed to work, leading to his downfall. His involvement in market manipulation, bribery claims, and legal battles led to his decline. Despite once being a guru dispensing stock tips and creating speculative bubbles, his optimism waned, and financial troubles mounted. He eventually passed away in jail, marked by convictions and trials, ending an era of his influence on Indian markets. Sucheta Dalal chronicles the story of Harshad Mehta in this article.

Wednesday, November 10, 2010

What is the equivalent of C# #region in C++?

In C# you can hide your code, using regions, i.e. something like this. But it doesn't work in C++. What is the equivalent of the #region directive in C++?

#region Public methods
void SomeMethod()
{

}
#endregion

Solution: This should work in both .h/.cpp files in Visual Studio.

#pragma region
 void Test();
 void Test2();
 void Test3();
#pragma endregion

or with a comment like this:

#pragma region Region_Declarations
 void Test();
 void Test2();
 void Test3();
#pragma endregion Region_Declarations