Thread: returning class and struct members

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Yes, that's right. So why are you trying to print the contents of msh_generator?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #2
    Registered User
    Join Date
    Aug 2006
    Posts
    61
    Hi Elysia,

    Sorry about my distraction. I put a print for Input.msh_generator instead Input.msh_file because the same operation is actually done on Input.msh_generator; I just edited the code now uphere to correct this distraction. Again, in the original code they are both done.

    I want to print them as a first try to see if the are both returned from the function that assigns them with the proper quantity; the real operation though, would be passing them to a next function that is supposed to use those values for further operations.

    Simply, I am getting it wrong on how to have a class function operate on certain arguments and then pass them to another function that belongs to the same class and that uses the same (or other structs as well)

    Thank you again for helping

    Best
    S.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Need help with linked list sorting function
    By Jaggid1x in forum C Programming
    Replies: 6
    Last Post: 06-02-2009, 02:14 AM
  2. How to copy a C struct to a C++ class?
    By Ptbamboo in forum C++ Programming
    Replies: 1
    Last Post: 02-21-2009, 02:11 PM
  3. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  4. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM

Tags for this Thread