News

i need to get a random number between 0 and 3 (or 1 and 4, whatever works) in visual c++ 6.0.what header files do i include? and what is the syntax for the function? i remember it being rand() but ...
My question is simple. Is a static local variable's initialization thread safe? Acording to Stroustrup: quote: (A Static Local Variable) will be initialized only the first time the thread of ...