Results 1 to 11 of 11

Thread: Using cout to display function return output

Threaded View

  1. #1

    Thread Starter
    Fanatic Member x-ice's Avatar
    Join Date
    Mar 2004
    Location
    UK
    Posts
    671

    Resolved Using cout to display function return output

    If i have the following code:

    Code:
    string clientName = "Dan";
    
    string getClientName(void)
    {
         return clientName
    }
    How can i use cout to display this information?

    p.s. I tried cout << getClientName() << endl; but it didnt work.
    Last edited by x-ice; Oct 12th, 2006 at 05:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width