Can someone tell me the effects of the static object on the statements that are numbered?
SomeCode.cpp
Or in a more general question, what are the effects of the static keyword on an object, object reference and object pointer. Can someone enumerate the key differences of static between C and C++ (excluding static member functions). What is the effect of static in a global function?
Rome did not create a great empire by having meetings, they did it by
killing all those who opposed them.
- janvier -
SomeCode.cpp
Code:
#include "../RSS/RSSInfo.h"
using RSS::RSSInfo ;
static RSSInfo fxnOne(void) ; // ??? (1)
static RSSInfo& fxnTwo(void) ; // ??? (2)
static RSSInfo rss_1 ; // ??? (3)
int main()
{
static RSSInfo rss_2 ; // ??? (4)
return 0 ;
}
Or in a more general question, what are the effects of the static keyword on an object, object reference and object pointer. Can someone enumerate the key differences of static between C and C++ (excluding static member functions). What is the effect of static in a global function?
Rome did not create a great empire by having meetings, they did it by
killing all those who opposed them.
- janvier -