Thread: Function recieving data from other function...

  1. #1
    False Return hubris's Avatar
    Join Date
    Apr 2009
    Posts
    33

    Function recieving data from other function...

    What is the proper syntax and structure for me returning a value from a variable in one function and modifying it in the second function. fstream? funcName? cin.get(funcName.data)??? grrrrrrrrrr.

    Help please

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Your question sounds like you have a large misunderstanding of how functions work. Can you provide more information. A simple example perhaps?

    In general, if you are only returning one value, you make the function return type the same type as that value. If you are returning multiple values there are other options.

  3. #3
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Does anyone read books anymore? Seems people stumble upon C++ compilers, kick them a couple times, and then come here to ask what the hell is going on.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  2. Calling a Thread with a Function Pointer.
    By ScrollMaster in forum Windows Programming
    Replies: 6
    Last Post: 06-10-2006, 08:56 AM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  5. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM