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
G

Grump

@Grump
About
Posts
1
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Beware of macros!
    G Grump

    Here's a bug I ran across yesterday:

    int iMaxFP = 0;
    for (POSITION pos = listFlowPeriods.GetHeadPosition(); pos != NULL; )
        iMaxFP  = max(iMaxFP , listFlowPeriods.GetNext(pos));
    

    Note: listFlowPeriods is an MFC CList<int,int> populated with an arbitrary set of values. The purpose of this code is to determine the largest value in the list. Funnily enough, it actually does work some times! Cheers, Ralph

    Clever Code c++ help
  • Login

  • Don't have an account? Register

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