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

Search:

Type: Posts; User: John E

Search: Search took 0.19 seconds.

  1. Replies
    5
    Views
    2,042

    Re: Are these static variables local or global ?

    Ah, of course! Thanks Victor :thumb:
  2. Replies
    5
    Views
    2,042

    Are these static variables local or global ?

    I came across the following code today and I was a bit surprised that it worked:-

    std::string func_A ()
    {
    static std::string x;

    if (!x.empty())
    return x;
    else...
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured