City View

City viewscapes but this is default view

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.This theme is Bloggerized by Lasantha Bandara - Premiumbloggertemplates.com.

Thursday, November 22, 2012

Accessing C++ codes from C codes

C and C++ are close cousins but I have never tried mixing both codes in one project before. I encountered such a need to mix codes just recently due to work. It is quite difficult to scour the net for reference. And after long hours of experimentation I was able to access C++ codes in my C codes.
Here are the steps:


C main file:
Call the C++ interface

void the_cpp_interface();
C++ header file:
Define wrapper and class:
#ifdef __cplusplus 
extern “C” { void the_cpp_interface()};
 #endif

class cppClass
{
 Public:
                Void cppTestFunc();
                cppClass() {};
}
               
C++ source file:
extern “C” void the_cpp_interface()
{
                //your c++ codes here
}

//class defn
myClass::cppTestFunc()
{
             // codes here
}

Sunday, November 11, 2012

Hello World!


My first trash code... enjoy :)

#include <conio.h>
#include <stdio.h>

int main()
{
    printf("Hello World!");
    return 0;
}

Friday, September 30, 2011

Is Investing in the Real Estate Properties a Wise Decision?

There are no sense of security in this world especially so when we speak of stock market, funds, and the economy. Currently, the financial market is still in the recovery phase due to the economic chaos brought about by the American economic problems. Thus, there are a lot of investors who placed their trust and money in to this arena is still at a loss. Since these kinds of investments fluctuate from time to time, it is often best that a wise investor should also have investments in the real estate business.

Investing in the real estate is just one of the investment vehicles that may guarantee you a safe place for your money. This is due to the fact that lands will always appreciate in time. Also, selling homes and residential places are investments that have good return of income.

There are disadvantages also when delving into the real estate world. Starting on one needs large capital and reserve cash as real estate may take time to dispose of. Also, if you intend to develop the place before selling it will this will add up to your starting capital.

Nevertheless, real estate investments are a good decision to put your money to. But as with other investments there are certainly negative as well as positive sides to it. Thus, it is a good decision to also invest on other vehicles so as to balance your risks.

Tuesday, May 24, 2011

Real-time gross settlement system

I have come across this term from investorwords.com.
I feel that I need to share them with you.
Here goes:
RTGS. A system that streamlines that settlement of large-value transactions between banks and other financial institutions. Instead of moving physical amounts of cash, the banks transfer funds electronically. When one bank transfers money to another, the funds are immediately credited to the second bank and debited to the first.

Wednesday, April 20, 2011

Diversify: Key to successful investing

With every business comes risks, and even greater if you put your money in stocks or mutual fund, this is because these investments are volatile. Stock prices increases and decreases every minute or so, so predicting its trends may not be that easy, unless you have a superpower prediction software installed in your brain.

So why is investing in stocks very risk? For people like me who have not gone to Business schools stock is a term not usually discussed and most are not that acquainted with this term. So what is a stock? According to www.investorwords.com, it is an instrument that signifies an ownership position (called equity) in a corporation, and represents a claim on its proportional share in the corporation's assets and profits. Therefore, when you buy a stock offered by a certain corporation you become a part-owner of that company. And if they obtain profit, you also get profit but the downside is that if they lose, so will you. And predictability of when profits are good and losses are bad are never determined easily.

How do we keep our money from catastrophe? We need to have many investment baskets in order to do this. It is a good decision to divide your money and invest it to many kinds of stocks, or investment baskets. For example, you invest a quarter of your money to agriculture stock, a quarter to mutual fund, a quarter to government bonds, while the last quarter to mining…the list is endless; it is up to you to decide. You can even follow the cost averaging technique to widen your grasp to more investment profits.

Why diversifying your investment a way to success?
• Manage your risk better. In this way, if one investment is losing, it could be compensated with a profit-earning investment.
• Increase profit. It is not always that your stocks are giving you benefits, most often, investments losses, stock prices are going down therefore, if you have invested in only 1 “basket” you may definitely loss that hard-earned money.

Furthermore, diversifying is the key in winning this investment battle. If you will only put all your money in one asset there is a greater risk that you will either win or lose. A two-faced coin will only give you the head or the tail. But if you have many interests in many investments, you are able to manage your portfolio well and may in turn get more profits.