ya that's what I'm having trouble with is figuring out what should be in the parameters. and I'm not entirely sure what, pass an int, a float, and a char, actually mean.
So say you want a function that:
- returns an int
- passes a char and a double by value as parameters
- is named "myfunction"
It would look like this:
int myfunction( char, double );
Here, your assignment doesn't seem to care what the function is named, so that doesn't matter as long as it's a legal name (no spaces or weird symbols). All you have to do is get the return type and parameters right.
This has the parameters correct. However you changed the return type. The function needs to return a char, not an int.
I'm sorry, are you saying i need to put three arguments inside one parameter, such as,
Your terminology is a little wonky, which might be why this is confusing.
"parameter" and "argument" basically mean the same thing (I think there is a subtle difference, but I can never remember what it is, and the two terms are largely interchangeable).
ya, sorry. thanks for your time I'm still new at this. i can tell C++ takes many years of doing it to become efficient and flawless with it. well i guess ill just keep plugging away.