Thread: more include file problems

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

    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
    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, 10: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, 04: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