dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: wolle

Search: Search took 0.01 seconds.

  1. Thread: fallthrough

    by wolle
    Replies
    9
    Views
    692

    Re: fallthrough

    One way would be to use a simple "state machine" implementation, like


    int state = args; // start state
    while (state > 0) {
    switch (state) {
    case 9:
    // do something in this state...
  2. Thread: fallthrough

    by wolle
    Replies
    9
    Views
    692

    Re: fallthrough

    It's a standard "attribute specifier sequence" in C++ 17,

    https://en.cppreference.com/w/cpp/language/attributes

    I had no idea this feature even existed but I cannot be the only one since no one...
Results 1 to 2 of 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)