📚 Learn how to solve problems and build projects with these Free E-Books ⬇️ C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook 🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/ Experience the power of practical learning, gain career-ready skills, and start building real applications! This is a step-by-step course designed to take you from beginner to expert in no time! 💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10). Use it quickly, because it will be available for a limited time.
hi, your lesson was phatastic. I am 48 years old and decided to learn C++ and you made so many things clear. Thansk a lot. Best regards from Florence, ITaly
Really good job explaining to be fair very helpful, on my 3rd day learning cpp and most of my studies has been written so far so was refreshing to watch a video along side to the information is stuck on the screen to go back and see why it’s doing what etc this gave me more knowledge than reading for 6 hours yesterday about functions to only cover integer functions 😭
If you look at an example, there is one I made for calculating volumes below. #include using namespace std; void CalculateVolumeOf(char shape = 'c', float x=1, float y=1, float z=1) { float volume=0; float pi = 3.1415926; if (x
At first this lecture was quite a headache to learn, but with your clear explanation and diverse examples and a little effort from my side I understand what you explained.
Just a tip , you can't use the default parameter , in the Declaration and Definition you must choose one . I found that we can't use them together and searched for the answer in stackoverflow
I just finished filming the next video for this playlist. I have included both an interesting exercise that you can use to develop programmer logic, and another concept related to functions. I'm going to publish it on Monday or Tuesday, depending on how much it is going to take me to edit it! ✌️
//declaration double sum(double a, double b); //definition double sum(double a, double b) { double result; result = a + b; return result; } The result variable was created inside sum function, and that means that once a sum function finishes its task, it will no longer exist, nor you can access this variable outside of sum function. This type of variable you mention only in the definition. a and b are variables that are called parameters/arguments. You will have to pass these two when you invoke sum function, and that means that they need to be specified in both definition and declaration Definition and declaration of a function need to have the same name, return type, number of parameters, and those parameters have to be of the same data type in both definition and declaration.
Can any tell me, how do you pass an argument to the parameter in the function with a space in it? An example of this is a string of "Bob Burns" or "Los Angeles".
I figured it out. Instead of cin >> name;, you have to first #include , and then use getline(cin, name); or getline(cin, city); instead. This will allow you to enter a name with a space in the string, such as "Bob Burns".
I believe that you already found my LinkedIn, and added me as well. 😊 For this reason, I have linked all my social media profiles on my channel's banner. 😊
Thank you so much for this great tutorial. I have got question: I can not see window local debugger to run my code in Visual Studio 2019, would you please tell me how I can access it? Thank you, Saldina!
I have a question when you created your other function introdeMe you created variables in the argument and in the main function you created the same variable I was wondering if you could explain that to me.
Up to now I've been in the habit of writing out "std::cout" instead of the shortcut of "using namespace std" . . . but this time when I tried it, I would get error messages saying "identifier "string" is undefined". Strangely enough, if I used "using namespace std" everything works fine, but I have no idea why.
Outstanding videos. Very good pace and pedagogy. FYI. I would love to see Mostar city, and especially Koski Mehmed Pasha Mosque. It looks magnificent! Keep up the excellent work!!!
i did a little upgrade there, i added a last name feature this took me so many tries to find the right function to use but its all done now :) didnt even watch the switch video, im so proud #include using namespace std; void introduceMe(string name, string city, string lastName = 0, int age=0) { cout
i just noticed that i putted string lastname = 0; it was bc i wanted to do if (lastname != 0) or (lastname == 1) "i tried both" "the code with last name" else "the code without the last name" lol
why doesnt string work for me??? im using replit and i type this code exactly how it is in this video... but it doenst work????? i am confused??? is it the website replit?? or am i missing something???
I tried to declare a function and then define it, It had error of "redefining" parameter, below how it actually worked #include void foo(int a, int b=0); int main() { foo(0); } void foo(int a, int b) { std::cout
Not much, you probably mean the parameter of the function (int age = 0) which is the default value of the parameter age. Int per se is just a data type.
@@Kevindsatria I think this is not possible since int is a data type and should be followed by a variable name like int varName = 1. But I'm a complete newcomer, so maybe someone with more experience can help you.
📚 Learn how to solve problems and build projects with these Free E-Books ⬇️
C++ Lambdas e-book - free download here: bit.ly/freeCppE-Book
Entire Object-Pascal step-by-step guide - free download here: bit.ly/FreeObjectPascalEbook
🚀📈💻🔥 My Practical Programming Course: www.codebeautyacademy.com/
Experience the power of practical learning, gain career-ready skills, and start building real applications!
This is a step-by-step course designed to take you from beginner to expert in no time!
💰 Here is a coupon to save 10% on your first payment (CODEBEAUTY_YT10).
Use it quickly, because it will be available for a limited time.
This 16 minute video helped me understand functions better than my college professor could teach in two weeks. Very, very helpful!
Exactly
I’m feeling This rn
Feeling this
a whole semester summed up in 16 minutes , finally understand functions . you got a sub from me . keep up the good content
that's really true
Sad
I will keep learning as long as you keep making such good content.
With you I learned more in less time than at lecture. Thanks, I mean it
Power packed Explanation. Makes it so much easier to understand the C++ concepts.
Loads of love and respect to your work on TH-cam platform!!
C++ could never be made easier to understand. Thank you Saldina!!!
hi, your lesson was phatastic. I am 48 years old and decided to learn C++ and you made so many things clear. Thansk a lot. Best regards from Florence, ITaly
Greetings from Azerbaijan. This is the best lecture style I've ever seen.
This helped so much. Thank you! Definitely going to watch your other videos too. I’m learning C++ on my own so this has been a tremendous help.
That is awesome! I'm happy to help. ☺️🥰
@@CodeBeauty your my hero
after all these years I can finally say I understand functions properly, thank you.
Love your videos, please don't stop because you are awesome!!!!!!
Thanks! 😊 As long as there are people who find these videos useful, I feel motivated to make them.
I am complete beginner and I always learn from your videos.🙋♂️
YOU ARE THE BEST BY FAR AS USUAL.. TY SO MUCH
a lot of courses does not talk about these information and
that was really helpful, thank you.
Really good job explaining to be fair very helpful, on my 3rd day learning cpp and most of my studies has been written so far so was refreshing to watch a video along side to the information is stuck on the screen to go back and see why it’s doing what etc this gave me more knowledge than reading for 6 hours yesterday about functions to only cover integer functions 😭
You are so bloody clever. Even more so that English isn't your first language. I wish I had half your talent.
I think I have true love and passion for what I do, and everything else is just hard work and consistency over a long period of time ☺️🤗
my third time watching it and i now understand its purpose, lots of thanks
شكرا من القلب تحية من بلاد العرب💖
If you look at an example, there is one I made for calculating volumes below.
#include
using namespace std;
void CalculateVolumeOf(char shape = 'c', float x=1, float y=1, float z=1) {
float volume=0;
float pi = 3.1415926;
if (x
Another idea mastered... thank you Saldina🙏🙏
hello good afternoon !
your lacture is fully understand and set in my mind
😇😇😇
u're an angel teacher, God bless u
🙏💙
after seeing a lot videos here i reached to the gold. thank u
At first this lecture was quite a headache to learn, but with your clear explanation and diverse examples and a little effort from my side I understand what you explained.
you have the awesome quality of teaching thanks for the video...
Only video.... Only one I learned functions correctly ❤
Mam I really love the way of explaining, i can understand easily the content ..😃😃😃
thank you for these videos, soooo helpful!
You're so good. Thank you so much dear teacher.🥰🥰
Fantastic teaching! Thank you very much
You're very welcome!
Omg this was really helpful. You made it very easy and simple to understand. Thank you! Can you do a video on pointers?
I'm working on those videos right now 😊
I hope your channel will reach one million subscribers !! Because you deserve🙏🙏
Thank you for the help , getting problem in understanding functions but now they are clear 😍
One of my best teacher....
best the way you delver!
Thanks once more for excellent presentation!!
Great lesson!! congrats for your work...
Brilliant...i wish i could find this earlier
I like you teaching I am really appreciate you mam i am from india
🥰🥰
that's what i am looking for...
you got a sub Mam....
perfect explaination, well done .
your explanation is awesome as like you
Do you have a tutorial to show how to keep functions in separate files? This is something that I need to do. Thanks for these tutorials.
Your videos are the best
Just a tip , you can't use the default parameter , in the Declaration and Definition you must choose one .
I found that we can't use them together and searched for the answer in stackoverflow
A wonderful teacher! 🤙
As always, big++
Thanks for your effort.
Very informative! Thank you madam.
My pleasure 😊
Amazing!
Thanks a lot
Whoo! Amazing ❤️😘
Please more videos
you are awesome
I just finished filming the next video for this playlist.
I have included both an interesting exercise that you can use to develop programmer logic, and another concept related to functions.
I'm going to publish it on Monday or Tuesday, depending on how much it is going to take me to edit it! ✌️
Love from India 🇮🇳
I really appreciate you!!!
excellent presentation
Effort deserves thanks
appreciate Your videos thanks so much
Odlično!
if I want to declare the variable first and then define it, where do I put the "int age = 0? in the declaration, the definiton or in both?
//declaration
double sum(double a, double b);
//definition
double sum(double a, double b) {
double result;
result = a + b;
return result;
}
The result variable was created inside sum function, and that means that once a sum function finishes its task, it will no longer exist, nor you can access this variable outside of sum function. This type of variable you mention only in the definition.
a and b are variables that are called parameters/arguments. You will have to pass these two when you invoke sum function, and that means that they need to be specified in both definition and declaration
Definition and declaration of a function need to have the same name, return type, number of parameters, and those parameters have to be of the same data type in both definition and declaration.
Thank you for the videos
Can any tell me, how do you pass an argument to the parameter in the function with a space in it?
An example of this is a string of "Bob Burns" or "Los Angeles".
I figured it out. Instead of cin >> name;, you have to first #include , and then use getline(cin, name); or getline(cin, city); instead. This will allow you to enter a name with a space in the string, such as "Bob Burns".
Do you have a linkedin? I'm looking to build my network with other proficient developers!
I believe that you already found my LinkedIn, and added me as well. 😊
For this reason, I have linked all my social media profiles on my channel's banner. 😊
THANK YOU SO MUCH
Omg man I understand functions in 16 min and I didn’t understand it 1 month ago with my professor
you are simply beauty with brain 😘
Thank you so much for this great tutorial. I have got question: I can not see window local debugger to run my code in Visual Studio 2019, would you please tell me how I can access it? Thank you, Saldina!
That's isn't running on Visual Studio 2015,, because after string
on line 5, 6, 7 after cout "
Thank you!!!!
Please make a tutorial on how to make a program that reads data from text file.
i love u so much teacher;
thank you!
I have a question when you created your other function introdeMe you created variables in the argument and in the main function you created the same variable I was wondering if you could explain that to me.
I cant Thank you enough
how can i do this
assign value to numState variables by calling function
In that case, it should be written as:
void introduceMe(const string name);
do you tutor? You explain so well
Up to now I've been in the habit of writing out "std::cout" instead of the shortcut of "using namespace std" . . . but this time when I tried it, I would get error messages saying "identifier "string" is undefined". Strangely enough, if I used "using namespace std" everything works fine, but I have no idea why.
Outstanding videos. Very good pace and pedagogy. FYI. I would love to see Mostar city, and especially Koski Mehmed Pasha Mosque. It looks magnificent! Keep up the excellent work!!!
Thanks
does anyone know how to do it in C# am stuck. I have a method that is been invoked twice and the 1st one doesn't have any value to parameter
thank you thank you thank you than uuuuuuu
🥰🥰🥰
thanks a lot
i did a little upgrade there, i added a last name feature this took me so many tries to find the right function to use but its all done now :) didnt even watch the switch video, im so proud
#include
using namespace std;
void introduceMe(string name, string city, string lastName = 0, int age=0) {
cout
i just noticed that i putted string lastname = 0; it was bc i wanted to do
if (lastname != 0) or (lastname == 1) "i tried both"
"the code with last name"
else
"the code without the last name"
lol
good🙂
3:37 it didnt worked I tried it.
erorr was: C2660 'introduceMe': function does not take 1 arguments
could you help about it please
when i make an exact kopie void main() is not working must be int main() according to my compiler and now it is working proper.
Same🥲
why doesnt string work for me??? im using replit and i type this code exactly how it is in this video... but it doenst work?????
i am confused??? is it the website replit?? or am i missing something???
How many functions are there?
asome you made it really easy
How did the --if-- work with no { } ???
My understanding is if you only have one line to execute under the if statement you can skip the brackets, otherwise you need them.
did ya film this twice
This lady should right a book. But why did she skip over void , what does that mean.
I tried to declare a function and then define it, It had error of "redefining" parameter, below how it actually worked
#include
void foo(int a, int b=0);
int main()
{
foo(0);
}
void foo(int a, int b) {
std::cout
what does the parameter (int=1) or (int=0) mean? does anyone know?
Not much, you probably mean the parameter of the function (int age = 0) which is the default value of the parameter age. Int per se is just a data type.
@@day4834 no, i mean for example:
Rational (int =1 , int=0);
@@Kevindsatria I think this is not possible since int is a data type and should be followed by a variable name like int varName = 1. But I'm a complete newcomer, so maybe someone with more experience can help you.
Looking gorgeous
10:04
Do you teach Python.
thanks>>;
Mostar?
Bosna i Hercegovina?