Function Calling

How would I call this function in my main function.
1
2
3
4

  void print_calendar(int month, int year, ofstream& output)
{
}
Last edited on
1
2
3
4
int main()
{
      print_calendar( 1923, "filename.txt" );
}


It might be worth noting that passing the filename will be useless if you don't change line 9 to use it.
What do you expect line 19 to do? Where have you defined a print_calendar() function which takes two integers?
Topic archived. No new replies allowed.