Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. problem to get a member fuctions from iterator

problem to get a member fuctions from iterator

Scheduled Pinned Locked Moved ATL / WTL / STL
questionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aguest
    wrote on last edited by
    #1

    hi i am working with VS2003 and i got a problem with accessing to list member functions. i have : class company { public: CString comapany_name; int Number; list work; public: time_of_work(int ID); company(void); virtual ~company(void); } and class worker { public: CString name; int ID; int hours public: get_name(int ID); worker(void); virtual ~worker(void); } when i try to get the member function from the a company iterator that don't work: list::iterator comp; **comp->.....** it give me just a list of company methods and variables and if i try the dot('.') **comp.** i can get {iterator, operator+,operator-,operator*,operator= } how can i get the list of the member functions ?

    M 1 Reply Last reply
    0
    • A aguest

      hi i am working with VS2003 and i got a problem with accessing to list member functions. i have : class company { public: CString comapany_name; int Number; list work; public: time_of_work(int ID); company(void); virtual ~company(void); } and class worker { public: CString name; int ID; int hours public: get_name(int ID); worker(void); virtual ~worker(void); } when i try to get the member function from the a company iterator that don't work: list::iterator comp; **comp->.....** it give me just a list of company methods and variables and if i try the dot('.') **comp.** i can get {iterator, operator+,operator-,operator*,operator= } how can i get the list of the member functions ?

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      Your question isn't clear - for which class do you want a list of methods?

      --Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ "That's what's great about doing user interface work. No matter what you do, people will say that what you did was idiotic." -- Raymond Chen

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups