Objective C Programming Tutorial - 11 - Type Casting and Assignment Operators

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
33,683
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Apr 1, 2010

Check out my blog http://thenewboston.blogspot.com/

Thanks for watching and don't forget to subscribe!

Category:

Howto & Style

Tags:

License:

Standard YouTube License

  • likes, 5 dislikes

Link to this comment:

Share to:

Top Comments

  • Really Great Tutorials buddy :]

  • its called text edit

see all

All Comments (73)

Sign In or Sign Up now to post a comment!
  • "not cool man not cool." lol

  • haha thanks for the shortcut! so much better!

  • @TheReinaldomartinez i will not feed the troll

  • @TheReinaldomartinez Wow dude, chill. You don't seem like an experienced programmer because you sound like a total idiot.

    You shouldn't be like "OMG NO U IDIOT BUCKY NEVER WRONG LOL" because he is a human, humans make mistakes.

    And learn to disable Caps Lock. There is a button for it on Macs, it's right below Tab.

  • It's not converting it, it's chopping it off. As you said, integers can't contain decimals.

    If it was converting it the output would be 27. Not 26.

  • @louisdebmusic Based on my understanding, you can't assign a floating point number (26.77) to an integer variable (bucky). So, the (int) typecast is used to turn the number 26.77 into an integer so that it can be assigned to bucky.

  • @jayce20010 I still have nightmares about the first C class I took where we did just that, we must have spent a solid month on conversions.

  • I'm sure this has been covered and i've forgotten but I don't understand the purpose of:

    int bucky = (int) 26.77;

    Can you not just use:

    int bucky = 26.77;

    Please help

  • @Mewigi SHUT THE FUCK UP !!! WHO THE FUCK DO YOU THINK YOU ARE ? ARE YOU THE YOUTUBE POLICE ???? SHUT YOUR STUPID DOG MOUTH IDIOT!!! BUCKY IS A GENIUS!! , HE IS NEVER WRONG, THANKS TO HIM I HAVE THIS WONDERFUL PART TIME JOB THAT HELPS ME MAKE A LOT OF MONEY YOU IDIOT!!! SO WHO THE FUCK ARE YOU TO JUDGE ME ?????

  • @TheReinaldomartinez No you don't. Not when you flame people in all caps, when all they were trying to do was correct Bucky, with valid corrections, in order to help new programmers. And if you really were an experienced programmer, you yourself would see flaws in Bucky's code that only an experienced programmer would notice. Also, you would probably be acting differently, because most programmers I have met know how to 1) defend their views and get into proper arguments, and 2) use a keyboard.

Loading...

Alert icon
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