Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

C++ Tutorial #2, Data Types (2)

Loading...

Sign in or sign up now!
5,305
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Dec 28, 2007

Basic Data Types

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • @1313Travis1313 (int)cChar is called typecasting. You can also do this to have the same affect "int(cChar)".

    Typecasting forces the compiler to cast the variable to a different type, for example, if you wanted to make a float an integer.

    float number = 10.0102;

    cout << (int)number << endl;

  • wats the difference between a float and a double?

  • "a string doesn't bold because it is not a data type"

    Actualy string is a class in the std namespace as the program was written :))

  • Also I think you should point out that a string doesn't bold because it is not a data type. It is actually an array of "char".

  • when u do << (int)cChar << what does that mean?

  • you can see Streloks tutorials at reconnetworks(dot.)net/forum

  • ^_^

  • fixed it

  • im getting a problem on line 9 with that cChar stuff....

Loading...
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more