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. C / C++ / MFC
  4. keeping track of users count

keeping track of users count

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 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.
  • N Offline
    N Offline
    nuttynibbles
    wrote on last edited by
    #1

    hi, i got a log file which contains many user who login on the different days at different time. A sample would be:

    time mon tue wed thurs fri sat sun
    0900 A B Q F K Z W
    1000 D Y Q L S Q D
    1100 E R G S Q Q W
    1200 U E G S G F P
    1300 H G D Q H G D
    1400 W B E D X Z E
    1500 Q H W F Z L B
    1600 B H Q G S Z E
    1700 D D L X E A H
    1800 E W J Z L B F
    1900 L M G A P C L
    2000 O P F F G S D

    how do i find out the number of times each user login?

    L 1 Reply Last reply
    0
    • N nuttynibbles

      hi, i got a log file which contains many user who login on the different days at different time. A sample would be:

      time mon tue wed thurs fri sat sun
      0900 A B Q F K Z W
      1000 D Y Q L S Q D
      1100 E R G S Q Q W
      1200 U E G S G F P
      1300 H G D Q H G D
      1400 W B E D X Z E
      1500 Q H W F Z L B
      1600 B H Q G S Z E
      1700 D D L X E A H
      1800 E W J Z L B F
      1900 L M G A P C L
      2000 O P F F G S D

      how do i find out the number of times each user login?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Read the file and count the entries by user name. You could use an array or a map template to build the counts. You can then sort the list and display the counts in whatever way you need.

      N 1 Reply Last reply
      0
      • L Lost User

        Read the file and count the entries by user name. You could use an array or a map template to build the counts. You can then sort the list and display the counts in whatever way you need.

        N Offline
        N Offline
        nuttynibbles
        wrote on last edited by
        #3

        Tks alot. i will be working with that idea.

        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