Thread: Including my 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
    28,413
    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
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    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, 12:59 AM
  2. added start menu crashes game
    By avgprogamerjoe in forum Game Programming
    Replies: 6
    Last Post: 08-29-2007, 01:30 PM
  3. Makefile producing a list of files.
    By leonm54 in forum Tech Board
    Replies: 1
    Last Post: 07-23-2007, 09:54 AM
  4. including files
    By Deb in forum C Programming
    Replies: 1
    Last Post: 04-20-2007, 11:06 AM
  5. including other .c files
    By Unregistered in forum C Programming
    Replies: 2
    Last Post: 02-24-2002, 09:56 PM