Hej med jer,
Jeg er kommet vildt i tvivl mht typecasting. Er der nogen som kan forklare mig om koden her er C eller C++? 
#include <iostream>
using namespace std;
int main()
{
  for ( int x = 0; x < 256; x++ ) {
    cout<< x <<". "<< (char)x <<" "; 
    //Note the use of the int version of x to 
    // output a number and the use of (char) to 
    // typecast the x into a character     
    // which outputs the ASCII character that 
    // corresponds to the current number
  }
  cin.get();
}
Kan nogen give mig en lettere eksempel på typecasting i C++ ?