C++ Tutorial (28) - Absolute n00b spoonfeed

Loading...

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

Uploaded by on May 2, 2008

Video tutorials about programming in the C++ programming language.

Part 28:
* Passing by value
* returning one result

Pardon my imperfect english.

Forum: http://cpptutorials.freeforums.org/

If you have any suggestions about how to make this video clearer, more n00b helpful, and explanatory, please send me a message.

If you have any C++ questions, please comment.

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (antiRTFM)

  • when your passing your variables from the main and you mix up the order that thefunc is passing like this (x,char,float) when you cout << in void func in the right order, the char character no matter what you make it , it will print out as a smilie face! no joke. try it out. it might take a couple of differant orders to get it right but it will print a smilie for the char you choose. can any one expain this.

  • 'char' type is also numerical, it holds the number code for a character. if you pass some number instead of a char, it will understand that you want that character code.

    one of the characters on your current character code page is ☺

  • maybe it's not used in programming, but i was just wondering .....

    what would happen if you wanted to "pass" int x, int y, float j.....

    what I mean is that if it's possible to pass two variables of the same type??

  • sure

  • hey i noticed that you still havent introduced the comment delimeter in ur videos

    its actually kind of important i guess

    i just copy down ur code in my visual studio 2005 and when i have to erase the code for my next code

    i just put my previous code as a comment so its the same thing as erasing but its a comment

    ur videos are awesome

  • yup thats in another vid

    cheers

Top Comments

  • wow these are great tutorials i wouldn't worry about the accent its actually quite calming, and your english is better than mine and im white

  • Best C++ video so far!!!

see all

All Comments (38)

Sign In or Sign Up now to post a comment!
  • ◕ ◡ ◕

  • Small question:

    Since we are able to pass variables from the "int main()" function to the "void myfunc()" function, change the variables around in the myfunc() world, are we able to pass them back from myfunc() to main() and even if we have to give them new names (for example newx, mynewfloat, and mynewchar) can't we immediately set x = newx, myfloat = mynewfloat, and mychar = mynewchar?

    By doing this, it seems x, myfloat and mychar will now have the value as imported from myfunc().

    Jon

  • @sprjcube Uh, don't get the joke?

  • @Jager1000 what does being white have to do with speaking english...

  • You make things sound so easy you just anwserd a HUGE qustion on my part.

    Thanks for all your videos please keep them coming.

    New Member on your forum in the house.

    Peace.

  • Reference Parameters. 

  • @uperkurk Any experienced programmer would disagree with you.

  • @uperkurk Why did this comment get thumbs up? That's like saying "It's all good and well learning how to mix cement and stuff, but I just want to know how to build a house..." If you don't understand the underlying bits which make up programs, you won't be able to make them. Making a program which is useful and competitive in today's market is complex - takes a long time to get to a level where you're capable enough to do so, and you absolutely need to understand every little bit along the way.

  • thank you so much!

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