int main(coffee){ <-------------- you can't do this. main should either have no parameters or some very specific ones that I won't go into here that govern its commandline (and by proxy drag and drop in windows) parameters. it should just be int main() here.
void coffeeType(); <------------- this is legal but you do not make a body for this function and you may have problems because of this.
void makeCoffee(string type){ <---------------- this function is never used.
#include <iostream>
#include <string>
usingnamespace std;
void makeCoffee(string type); //changed to the function you actually HAVE
int main()
{ //fixed misaligned brace
string coffee;
cout << "Enter your favourite type of coffee: " << endl;
cin >> coffee;
makeCoffee(coffee); //call your function here!
return 0;
}
void makeCoffee(string type)
{
cout << "Making a cup of " << type;
}
As for not understanding what you wrote, I can suggest looking at the c++ tutorial on this website that can be found via the following link: http://www.cplusplus.com/doc/tutorial/
Unfortunately, I can't help you any further then that because I would be rehashing what's on the tutorial. Please post more specific questions to aid me in helping you.
thank you very much, you may think this is a pointless question, but i started c++ specifically for the memory allocation/management and this has really helped. thanks