Just starting to look at functions and i wanted to write one that would go on to a new line. I know this code is really impractical but if you know what i am trying to do would you be a pal and show me the way. The less you change my code the more help it will be to me.
// This is my first function (no ........ sherlock)
#include <iostream.h>
void nline(void); // function prototype
int main()
{
cout << "Hello"
<< nline(void)
<< "Kiddies"
<< nline(void)
return 0;
}
void nline(void) // newline function
{
cout <<endl;
return ;
}
Any other constructive help about functions would be appreciated.
(an url maybe)
Thanks