Saturday, February 15, 2014
Sunday, February 9, 2014
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:
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!
4:04 AM
No comments
My first trash code... enjoy :)
#include <conio.h>
#include <stdio.h>
int main()
{
printf("Hello World!");
return 0;
}
#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.
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.
Subscribe to:
Posts (Atom)