Including my files?

This is a discussion on Including my files? within the C++ Programming forums, part of the General Programming Boards category; Hello, I'm pretty new to C++ and I cant solve this problem. I'm working with Code::Blocks on my *.cpp files; ...

  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    22

    Including my files?

    Hello, I'm pretty new to C++ and I cant solve this problem.

    I'm working with Code::Blocks on my *.cpp files; how can I call functions of other my cpp files ? I know that' is a silly question but I'm a noob

    Another thing: are there generics in C++?
    and what I must include to use sets maps and lists?


    thanks a lot!

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    22,269
    Use header files (usually .h extension), and #include these header files.

    Another thing: are there generics in C++?
    Yes, with the template mechanism, and to a lesser extent, function/operator overloading.

    and what I must include to use sets maps and lists?
    <set>, <map>, and <list>
    You may find these websites useful:
    C/C++ Reference
    SGI's STL Programmer's Guide
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Help with loading files into rich text box
    By blueparukia in forum C# Programming
    Replies: 3
    Last Post: 10-19-2007, 01:59 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 02:30 PM
  3. Makefile producing a list of files.
    By leonm54 in forum Tech Board
    Replies: 1
    Last Post: 07-23-2007, 10:54 AM
  4. including files
    By Deb in forum C Programming
    Replies: 1
    Last Post: 04-20-2007, 12:06 PM
  5. including other .c files
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 02-24-2002, 09:56 PM

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