Passing along function parameters

This is a discussion on Passing along function parameters within the C++ Programming forums, part of the General Programming Boards category; Originally Posted by Elysia That is not an excuse! No, but it helps me keep track of what's going on ...

  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
    Posts
    23,033
    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.

Page 2 of 2 FirstFirst 12
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

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