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

c++ Programming Tutorial 5

Loading...

Sign in or sign up now!
113,336
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jul 27, 2007

Continuation of 4 so to speak, going through pointers a little more in depth as people didnt really seem to get it.

  • likes, 27 dislikes

Link to this comment:

Share to:

Uploader Comments (reconnetworks)

  • im teaching simple console applicatons... its not improper practice.

Top Comments

  • So wat happened to the "big vid" u promised was going to come out?? *disappointed*

see all

All Comments (191)

Sign In or Sign Up now to post a comment!
  • *5 years in the future*

    When does tutorial 6 come out? :D

  • @tedtdu You don't need to 'return' a value from the function because that's what the pointers are for. You can only 'return' one value from a function so instead you can use pointers. When you assign a value to a pointer (even in another function) it will assign that value to the variable which it points to. So the user's input assigns that number to the pointer, which automatically sends the value to the variable in 'main'.

  • Since "pointerfunction" does not return, how can the firstpointer and secondpointer equal to the number using inputs?

  • so basic hahaha

  • @eminemchu43 rtfm

  • What's the meaning of the asterisk in your program.

    Please just mail me your answers. Thanks..

  • firstpointer and secondpointer are not pointers- they are variables, their ADDRESSES are pointers.

  • ok i understand now :D btw i also finally learned what endl; does cuz you stoped using it alot in this one :)

  • ewww, he's using system("pause") such a windows dependent function.

View all Comments »
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