As you define void menu(string wrd,int cnt)
, you must have to call the menu()
function passing with two parameters like menu("code",10)
from main function.
You can pass any valid string
and int
in the menu()
.
1
solved C++ Function Calling with Parameter in int main [closed]