CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: 2kaud

Search: Search took 0.06 seconds.

  1. Replies
    6
    Views
    1,329

    Re: Sending Data back to Main()

    Yes, at the moment. But to fullfil your teacher requirements you now need to define them either in main() and pass by reference to CalculateBill and by value to PrintResults - or globally so you...
  2. Replies
    6
    Views
    1,329

    Re: Sending Data back to Main()

    Use pass by reference rather than pass by value so that the function can return data to the calling routine as part of its arguments.

    Any parameter of PrintResults is going to have to be defined...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured