Thread: casts

  1. #1
    Registered User
    Join Date
    Feb 2008
    Posts
    43

    casts

    can somebody please explain what a cast is ?
    Last edited by BlaX; 03-08-2008 at 02:08 PM.

  2. #2
    Registered User
    Join Date
    Mar 2008
    Posts
    10
    When you cast a variable you are changing the type. Here is a good site to explain things: http://www.cplusplus.com/doc/tutorial/typecasting.html


    -Dustin
    http://www.theCprogrammer.com

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Recent previous discussion of casting:

    http://cboard.cprogramming.com/showthread.php?t=99859

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C-style casts removed
    By KIBO in forum C++ Programming
    Replies: 2
    Last Post: 03-27-2009, 03:32 AM
  2. Am I using casts properly?
    By Dondrei in forum C++ Programming
    Replies: 7
    Last Post: 03-14-2009, 12:51 AM
  3. Overloading casts
    By CodeMonkey in forum C++ Programming
    Replies: 2
    Last Post: 12-24-2006, 11:11 PM
  4. Templates and type casts
    By ventolin in forum C++ Programming
    Replies: 2
    Last Post: 05-27-2004, 07:06 PM
  5. C++ Faq-lite (Pointer/Reference casts are evil? No.)
    By lightatdawn in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 03-21-2003, 04:05 PM