C++ Tutorial (28) - Absolute n00b spoonfeed
Uploader Comments (antiRTFM)
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!!!
All Comments (38)
-
◕ ◡ ◕
-
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!
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.
rgrinie 2 years ago
'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 ☺
antiRTFM 2 years ago
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??
efrog57 2 years ago
sure
antiRTFM 2 years ago
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
checkurself7 3 years ago
yup thats in another vid
cheers
antiRTFM 3 years ago