Thread: Passing along function parameters

  1. #16
    Registered User
    Join Date
    Oct 2006
    Posts
    118
    Quote Originally Posted by Elysia View Post
    That is not an excuse!
    No, but it helps me keep track of what's going on easier.

    I'll search for the map function. Strange I've never seen it if it's so common... :/

    FlyingIsFun1217

    ----------EDIT----------
    Ok, I found it. It's STL, which I haven't much worked with, explaining why I haven't seen it.

    I am, probably to Elysia's disproval, going to go with the map function, as it seems to be exactly what I am looking for. I'll post results later.

    FlyingIsFun1217
    Last edited by FlyingIsFun1217; 12-30-2007 at 07:50 PM.

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    I don't disapprove std::map, I like it much more if you use std::map and store instances of classes which contains a single timer rather than a single instance of a class to store multiple timers. That almost defeats the purpose of a class.
    Here's a tutorial of std::map:
    http://www.cprogramming.com/tutorial/stl/stlmap.html
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  2. Passing structs as parameters
    By 182 in forum C++ Programming
    Replies: 3
    Last Post: 02-15-2006, 10:51 PM
  3. Including lib in a lib
    By bibiteinfo in forum C++ Programming
    Replies: 0
    Last Post: 02-07-2006, 02:28 PM
  4. Passing a function to a function
    By lend0g in forum C++ Programming
    Replies: 1
    Last Post: 03-18-2003, 10:16 PM
  5. Passing parameters from VB to C++ through ActiveX DLL
    By torbjorn in forum Windows Programming
    Replies: 0
    Last Post: 12-10-2002, 03:13 AM