Can some1 please point me to a website that teaches converting? Example: from int to char, etc..
Can some1 please point me to a website that teaches converting? Example: from int to char, etc..
what does signature stand for?
Code:int IntValue = 64; char CharValue = (char)IntValue; char* CharArrayValue = "123"; int IntValue2 = atoi(CharArrayValue);
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
In general there are four solution to type conversion in C++.
static_cast
reinterpret_cast
const_cast
dynamic_cast
Kuphryn
arent we forgetting conversion operators and non-explicit single argument constructors. Also constructors with default params.
There is much more to this subject than first meets the eye.
You will learn a lot here
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
I never did know the difference between the 4 types. In fact, I never knew there were 4 types
Just Google It. √
(\ /)
( . .)
c(")(") This is bunny. Copy and paste bunny into your signature to help him gain world domination.