is possible create a any type variable(1 variable that accept any type of values)?

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: is possible create a any type variable(1 variable that accept any type of values)

Re: is possible create a any type variable(1 variable that accept any type of values)

No compile error and "works as desired" isn't the same thing.

You have discovered that it is possible to print a pointer to void. This is useful when you want to print an address. However, it is not the same thing as printing a "variable that accept any type of values".

Re: is possible create a any type variable(1 variable that accept any type of values)

Originally Posted by laserlight

No compile error and "works as desired" isn't the same thing.

You have discovered that it is possible to print a pointer to void. This is useful when you want to print an address. However, it is not the same thing as printing a "variable that accept any type of values".

MingW also uses gcc to compile projects. Dev-C++ (once again) is an IDE that just happens to have an old version of gcc already plugged into it. If you take a look at the link I gave you above, and do a little searching on the Internet, you should be able to upgrade MingW to use the latest version of gcc.

The boost libraries are extensively tested with gcc and Visual Studio, and I would say the two platforms that must compile successfully before being accepted by boost.org.

As to IDE's, there is CodeBlocks, which is up-to-date. Do an Intenet search and you will find other IDE's.