use various files

This is a discussion on use various files within the C Programming forums, part of the General Programming Boards category; Hello, I used the search but i guess the question is too stupid to ba asked lol Until now all ...

  1. #1
    Registered User
    Join Date
    Nov 2004
    Posts
    10

    use various files

    Hello,

    I used the search but i guess the question is too stupid to ba asked lol

    Until now all the progs i wrote in C were in a big fat file. But now i would need to separate them in various files. do i just need to add a #include "nam'odefile.c" or is it another things to do?


    Thanks

  2. #2
    Just Lurking Dave_Sinkula's Avatar
    Join Date
    Oct 2002
    Posts
    5,006
    Here's a start, and although the example isn't C, the basics are there:

    FAQ > How do I... (Level 2) > Multiple source files for one program (C++ example)
    7. It is easier to write an incorrect program than understand a correct one.
    40. There are two ways to write error-free programs; only the third one works.*

  3. #3
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ressources files
    By mikahell in forum Windows Programming
    Replies: 4
    Last Post: 06-19-2006, 06:50 AM
  2. add source files to embedded VC 4.0
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 06-13-2006, 03:28 AM
  3. *.cpp and *.h files understanding
    By ElastoManiac in forum C++ Programming
    Replies: 4
    Last Post: 06-11-2006, 04:45 AM
  4. Linking header files, Source files and main program(Accel. C++)
    By Daniel Primed in forum C++ Programming
    Replies: 3
    Last Post: 01-17-2006, 10:46 AM
  5. Multiple Cpp Files
    By w4ck0z in forum C++ Programming
    Replies: 5
    Last Post: 11-14-2005, 01:41 PM

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