I am just getting into this C++ programming, enjoying it as well. But from examples I have read on functions I am slightly confused
addem(int a, int b, int c)
int a, b, c;
addem(int a, b, c);
std::cout<<"Lets add a and b, and we get"<<c;
Question time now! In the function defination do I have to put int after each variable name, These variables are what is going to be passed to the function right? And do they have to be different or do they HAVE to be the same name as the name of the variables being passed to them. finally have I called the function correctly from the MAIN function.
thanks for your time,