more include file problems

This is a discussion on more include file problems within the C++ Programming forums, part of the General Programming Boards category; okay, ive now understood how C++ links files togethere as seperate modules with .h and .cpp files doing seperate things. ...

  1. #1
    Registered User whackaxe's Avatar
    Join Date
    Mar 2004
    Posts
    332

    Unhappy more include file problems

    okay, ive now understood how C++ links files togethere as seperate modules with .h and .cpp files doing seperate things. my problem now is that i have two objects/classes. one is my configfile reader/writer, the other is a controller for a laucnhed process (which also contains stats like running time etc) the thing is that now i ve cut and paste all my code into differnt files, how do i create the two objects without getting multiple declaration errors? do i need to rewrite them as all seperate fucntions, but n that case where would i keep the variables?

  2. #2
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 11:39 PM
  2. Problems with file pointer in functions
    By willie in forum C Programming
    Replies: 6
    Last Post: 11-23-2008, 01:54 PM
  3. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 05:54 PM
  4. help with finding lowest number entered
    By volk in forum C++ Programming
    Replies: 12
    Last Post: 03-22-2003, 01:21 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21