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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
A

Arun Singh K

@Arun Singh K
About
Posts
3
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • How to avoid if else...
    A Arun Singh K

    You can try something like this int func1() { return 0; } int func2() { return 0; } typedef int (*funcptr)(); struct condition { int low; int high; funcptr func; }; condition arr[] = { { 10, 20, func1 }, { 20, 30, func2 } // Can add more data here }; int n=17; for (int i=0;i<2;++i) { if (n > arr[i].low && n < arr[i].high) { arr[i].func(); // If you want you can break here } } -Arun

    C / C++ / MFC help tutorial code-review

  • Errors occurs while compiling Smart device MFC application using VS2005
    A Arun Singh K

    This seems to be compilation error because of not including correct header files. Try including the required header files in stdafx.h

    C / C++ / MFC c++ csharp visual-studio help

  • virtual constructor
    A Arun Singh K

    Consider this Example class Base { }; class Derived: public Base { }; Consider this Base *b = new Base() This means we need to create a Base object we are really not worried on who has derived from Base. Consider this Derived *d = new Derived(); or Base *b = new Derived(); This mean we want a derived object and by default the base class constructor is called before the Derived. So there is no use of virtual constructors. -Arun

    C / C++ / MFC c++ question
  • Login

  • Don't have an account? Register

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