+ 2
I am stuck in this code plz help me guys??
See this code https://code.sololearn.com/cnv3x48k724J/?ref=app
2 Respuestas
+ 2
What is the code suppose to do? Also you can't use break inside a function or anywhere in main function as well unless it comes under switch and if statements
You are passing friend order as an argument to a function which has no parameter specified for that
+ 2
I don't know what is expected output in code coach.
1. Add parameters for receiving arguments in function
2. Break statement not required because there is no looping here
Like this:
void printOrder(string friendOrder ) {
cout<<"Black tea"<<endl;
cout << friendOrder ;
// break ;
}